api documentation for discord.io (v2.5.1)

JavaScript interface for Discord.

table of contents

  1. module discord.io
    1. function discord.io.Client (options)
    2. function discord.io.Emitter ()
    3. function discord.io.io.Client (options)
    4. object discord.io.Codes
    5. object discord.io.Colors
    6. object discord.io.Endpoints
    7. object discord.io.Permissions
    8. object discord.io.io.Client.prototype
    9. object discord.io.io.Endpoints
    10. string discord.io.version
  2. module discord.io.Client
    1. function discord.io.Client (options)
    2. function discord.io.Client.super_ ()
    3. number discord.io.Client._eventsCount
    4. object discord.io.Client._events
    5. object discord.io.Client.domain
  3. module discord.io.Client.prototype
    1. function discord.io.Client.prototype.acceptInvite (inviteCode, callback)
    2. function discord.io.Client.prototype.addReaction (input, callback)
    3. function discord.io.Client.prototype.addServerEmoji (input, callback)
    4. function discord.io.Client.prototype.addToRole (input, callback)
    5. function discord.io.Client.prototype.ban (input, callback)
    6. function discord.io.Client.prototype.connect ()
    7. function discord.io.Client.prototype.createChannel (input, callback)
    8. function discord.io.Client.prototype.createDMChannel (userID, callback)
    9. function discord.io.Client.prototype.createInvite (input, callback)
    10. function discord.io.Client.prototype.createRole (serverID, callback)
    11. function discord.io.Client.prototype.createServer (input, callback)
    12. function discord.io.Client.prototype.createWebhook (serverID, callback)
    13. function discord.io.Client.prototype.deafen (input, callback)
    14. function discord.io.Client.prototype.deleteChannel (channelID, callback)
    15. function discord.io.Client.prototype.deleteChannelPermission (input, callback)
    16. function discord.io.Client.prototype.deleteInvite (inviteCode, callback)
    17. function discord.io.Client.prototype.deleteMessage (input, callback)
    18. function discord.io.Client.prototype.deleteMessages (input, callback)
    19. function discord.io.Client.prototype.deletePinnedMessage (input, callback)
    20. function discord.io.Client.prototype.deleteRole (input, callback)
    21. function discord.io.Client.prototype.deleteServer (serverID, callback)
    22. function discord.io.Client.prototype.deleteServerEmoji (input, callback)
    23. function discord.io.Client.prototype.disconnect ()
    24. function discord.io.Client.prototype.editChannelInfo (input, callback)
    25. function discord.io.Client.prototype.editChannelPermissions (input, callback)
    26. function discord.io.Client.prototype.editMessage (input, callback)
    27. function discord.io.Client.prototype.editNickname (input, callback)
    28. function discord.io.Client.prototype.editNote (input, callback)
    29. function discord.io.Client.prototype.editRole (input, callback)
    30. function discord.io.Client.prototype.editServer (input, callback)
    31. function discord.io.Client.prototype.editServerEmoji (input, callback)
    32. function discord.io.Client.prototype.editServerWidget (input, callback)
    33. function discord.io.Client.prototype.editUserInfo (input, callback)
    34. function discord.io.Client.prototype.editWebhook (input, callback)
    35. function discord.io.Client.prototype.fixMessage (message)
    36. function discord.io.Client.prototype.getAccountSettings (callback)
    37. function discord.io.Client.prototype.getAllUsers (callback)
    38. function discord.io.Client.prototype.getAudioContext (channelObj, callback)
    39. function discord.io.Client.prototype.getBans (serverID, callback)
    40. function discord.io.Client.prototype.getChannelInvites (channelID, callback)
    41. function discord.io.Client.prototype.getChannelWebhooks (channelID, callback)
    42. function discord.io.Client.prototype.getMember (input, callback)
    43. function discord.io.Client.prototype.getMembers (input, callback)
    44. function discord.io.Client.prototype.getMessage (input, callback)
    45. function discord.io.Client.prototype.getMessages (input, callback)
    46. function discord.io.Client.prototype.getOauthInfo (callback)
    47. function discord.io.Client.prototype.getPinnedMessages (input, callback)
    48. function discord.io.Client.prototype.getReaction (input, callback)
    49. function discord.io.Client.prototype.getServerInvites (serverID, callback)
    50. function discord.io.Client.prototype.getServerWebhooks (serverID, callback)
    51. function discord.io.Client.prototype.getUser (input, callback)
    52. function discord.io.Client.prototype.joinVoiceChannel (channelID, callback)
    53. function discord.io.Client.prototype.kick (input, callback)
    54. function discord.io.Client.prototype.leaveServer (serverID, callback)
    55. function discord.io.Client.prototype.leaveVoiceChannel (channelID, callback)
    56. function discord.io.Client.prototype.moveUserTo (input, callback)
    57. function discord.io.Client.prototype.mute (input, callback)
    58. function discord.io.Client.prototype.pinMessage (input, callback)
    59. function discord.io.Client.prototype.queryInvite (inviteCode, callback)
    60. function discord.io.Client.prototype.removeAllReactions (input, callback)
    61. function discord.io.Client.prototype.removeFromRole (input, callback)
    62. function discord.io.Client.prototype.removeReaction (input, callback)
    63. function discord.io.Client.prototype.sendMessage (input, callback)
    64. function discord.io.Client.prototype.setPresence (input)
    65. function discord.io.Client.prototype.simulateTyping (channelID, callback)
    66. function discord.io.Client.prototype.transferOwnership (input, callback)
    67. function discord.io.Client.prototype.unban (input, callback)
    68. function discord.io.Client.prototype.undeafen (input, callback)
    69. function discord.io.Client.prototype.unmute (input, callback)
    70. function discord.io.Client.prototype.uploadFile (input, callback)
  4. module discord.io.Endpoints
    1. function discord.io.Endpoints.BANS (serverID, userID)
    2. function discord.io.Endpoints.BULK_DELETE (channelID)
    3. function discord.io.Endpoints.CHANNEL (channelID)
    4. function discord.io.Endpoints.CHANNEL_WEBHOOKS (channelID)
    5. function discord.io.Endpoints.INVITES (inviteCode)
    6. function discord.io.Endpoints.MEMBERS (serverID, userID)
    7. function discord.io.Endpoints.MEMBER_ROLES (serverID, userID, roleID)
    8. function discord.io.Endpoints.MESSAGES (channelID, messageID)
    9. function discord.io.Endpoints.MESSAGE_REACTIONS (channelID, messageID, reaction)
    10. function discord.io.Endpoints.NOTE (userID)
    11. function discord.io.Endpoints.PINNED_MESSAGES (channelID, messageID)
    12. function discord.io.Endpoints.ROLES (serverID, roleID)
    13. function discord.io.Endpoints.SERVERS (serverID)
    14. function discord.io.Endpoints.SERVERS_PERSONAL (serverID)
    15. function discord.io.Endpoints.SERVER_EMOJIS (serverID, emojiID)
    16. function discord.io.Endpoints.SERVER_WEBHOOKS (serverID)
    17. function discord.io.Endpoints.TYPING (channelID)
    18. function discord.io.Endpoints.USER (userID)
    19. function discord.io.Endpoints.USER_REACTIONS (channelID, messageID, reaction, userID)
    20. function discord.io.Endpoints.WEBHOOKS (webhookID)
    21. string discord.io.Endpoints.API
    22. string discord.io.Endpoints.GATEWAY
    23. string discord.io.Endpoints.LOGIN
    24. string discord.io.Endpoints.ME
    25. string discord.io.Endpoints.OAUTH
    26. string discord.io.Endpoints.SETTINGS

module discord.io

function discord.io.Client (options)

function discord.io.Emitter ()

function discord.io.io.Client (options)

module discord.io.Client

function discord.io.Client (options)

function discord.io.Client.super_ ()

module discord.io.Client.prototype

function discord.io.Client.prototype.acceptInvite (inviteCode, callback)

function discord.io.Client.prototype.addReaction (input, callback)

function discord.io.Client.prototype.addServerEmoji (input, callback)

function discord.io.Client.prototype.addToRole (input, callback)

function discord.io.Client.prototype.ban (input, callback)

function discord.io.Client.prototype.connect ()

function discord.io.Client.prototype.createChannel (input, callback)

function discord.io.Client.prototype.createDMChannel (userID, callback)

function discord.io.Client.prototype.createInvite (input, callback)

function discord.io.Client.prototype.createRole (serverID, callback)

function discord.io.Client.prototype.createServer (input, callback)

function discord.io.Client.prototype.createWebhook (serverID, callback)

function discord.io.Client.prototype.deafen (input, callback)

function discord.io.Client.prototype.deleteChannel (channelID, callback)

function discord.io.Client.prototype.deleteChannelPermission (input, callback)

function discord.io.Client.prototype.deleteInvite (inviteCode, callback)

function discord.io.Client.prototype.deleteMessage (input, callback)

function discord.io.Client.prototype.deleteMessages (input, callback)

function discord.io.Client.prototype.deletePinnedMessage (input, callback)

function discord.io.Client.prototype.deleteRole (input, callback)

function discord.io.Client.prototype.deleteServer (serverID, callback)

function discord.io.Client.prototype.deleteServerEmoji (input, callback)

function discord.io.Client.prototype.disconnect ()

function discord.io.Client.prototype.editChannelInfo (input, callback)

function discord.io.Client.prototype.editChannelPermissions (input, callback)

function discord.io.Client.prototype.editMessage (input, callback)

function discord.io.Client.prototype.editNickname (input, callback)

function discord.io.Client.prototype.editNote (input, callback)

function discord.io.Client.prototype.editRole (input, callback)

function discord.io.Client.prototype.editServer (input, callback)

function discord.io.Client.prototype.editServerEmoji (input, callback)

function discord.io.Client.prototype.editServerWidget (input, callback)

function discord.io.Client.prototype.editUserInfo (input, callback)

function discord.io.Client.prototype.editWebhook (input, callback)

function discord.io.Client.prototype.fixMessage (message)

function discord.io.Client.prototype.getAccountSettings (callback)

function discord.io.Client.prototype.getAllUsers (callback)

function discord.io.Client.prototype.getAudioContext (channelObj, callback)

function discord.io.Client.prototype.getBans (serverID, callback)

function discord.io.Client.prototype.getChannelInvites (channelID, callback)

function discord.io.Client.prototype.getChannelWebhooks (channelID, callback)

function discord.io.Client.prototype.getMember (input, callback)

function discord.io.Client.prototype.getMembers (input, callback)

function discord.io.Client.prototype.getMessage (input, callback)

function discord.io.Client.prototype.getMessages (input, callback)

function discord.io.Client.prototype.getOauthInfo (callback)

function discord.io.Client.prototype.getPinnedMessages (input, callback)

function discord.io.Client.prototype.getReaction (input, callback)

function discord.io.Client.prototype.getServerInvites (serverID, callback)

function discord.io.Client.prototype.getServerWebhooks (serverID, callback)

function discord.io.Client.prototype.getUser (input, callback)

function discord.io.Client.prototype.joinVoiceChannel (channelID, callback)

function discord.io.Client.prototype.kick (input, callback)

function discord.io.Client.prototype.leaveServer (serverID, callback)

function discord.io.Client.prototype.leaveVoiceChannel (channelID, callback)

function discord.io.Client.prototype.moveUserTo (input, callback)

function discord.io.Client.prototype.mute (input, callback)

function discord.io.Client.prototype.pinMessage (input, callback)

function discord.io.Client.prototype.queryInvite (inviteCode, callback)

function discord.io.Client.prototype.removeAllReactions (input, callback)

function discord.io.Client.prototype.removeFromRole (input, callback)

function discord.io.Client.prototype.removeReaction (input, callback)

function discord.io.Client.prototype.sendMessage (input, callback)

function discord.io.Client.prototype.setPresence (input)

function discord.io.Client.prototype.simulateTyping (channelID, callback)

function discord.io.Client.prototype.transferOwnership (input, callback)

function discord.io.Client.prototype.unban (input, callback)

function discord.io.Client.prototype.undeafen (input, callback)

function discord.io.Client.prototype.unmute (input, callback)

function discord.io.Client.prototype.uploadFile (input, callback)

module discord.io.Endpoints

function discord.io.Endpoints.BANS (serverID, userID)

function discord.io.Endpoints.BULK_DELETE (channelID)

function discord.io.Endpoints.CHANNEL (channelID)

function discord.io.Endpoints.CHANNEL_WEBHOOKS (channelID)

function discord.io.Endpoints.INVITES (inviteCode)

function discord.io.Endpoints.MEMBERS (serverID, userID)

function discord.io.Endpoints.MEMBER_ROLES (serverID, userID, roleID)

function discord.io.Endpoints.MESSAGES (channelID, messageID)

function discord.io.Endpoints.MESSAGE_REACTIONS (channelID, messageID, reaction)

function discord.io.Endpoints.NOTE (userID)

function discord.io.Endpoints.PINNED_MESSAGES (channelID, messageID)

function discord.io.Endpoints.ROLES (serverID, roleID)

function discord.io.Endpoints.SERVERS (serverID)

function discord.io.Endpoints.SERVERS_PERSONAL (serverID)

function discord.io.Endpoints.SERVER_EMOJIS (serverID, emojiID)

function discord.io.Endpoints.SERVER_WEBHOOKS (serverID)

function discord.io.Endpoints.TYPING (channelID)

function discord.io.Endpoints.USER (userID)

function discord.io.Endpoints.USER_REACTIONS (channelID, messageID, reaction, userID)

function discord.io.Endpoints.WEBHOOKS (webhookID)

[ this document was created with utility2 ]