Download Latest Version 2.4.0 source code.tar.gz (68.9 kB)
Email in envelope

Get an email when there's a new version of discord.io

Home / 1.13.0
Name Modified Size InfoDownloads / Week
Parent folder
1.13.0 source code.tar.gz 2016-07-01 63.9 kB
1.13.0 source code.zip 2016-07-01 67.4 kB
README.md 2016-07-01 2.0 kB
Totals: 3 Items   133.3 kB 0

Major:

Methods

  • getMessage({channelID: "", messageID: ""})
  • pinMessage({channelID: "", messageID: ""})
  • getPinnedMessages({channelID: ""})
  • deletePinnedMessage({channelID: "", messageID: ""})
  • editNote({userID: "", note: ""})

Changes

  • Methods that previously used server, channel, role, or user, now use serverID, channelID, roleID, userID, etc (The former are simply deprecated for the next few releases, then they'll be removed)
  • createDMChannel callback arguments are now (error, response)
  • createServer and editServer do not request the server regions before firing the request (Check the documentation for correct regions)
  • Role.prototype.Permissions moved to Discord.Permissions
  • Methods moved outside of DiscordClient constructor
  • Removed needle as a dependency. Using Node's internal http module. (Looking to remove more deps!) (Multipart was a pain in the ass)
  • Fixed DEPRECATED serverFromChannel method's crashing with some IDs (Please use bot.channels[channelID].guild_id )
  • (Pull Request [#75] [#76]) TypeScript definitions donated (Won't upkeep though, not a TypeScript user)
  • (Pull Request [#77]) Fixed TypeScript definitions
  • A lot of the internal properties have now been exposed as _property. (They're non-enumerable by design, so you won't see them unless you access them yourself)
  • The ready event now has a 3.5 second wait period before it fires. (Discord uses the same unavailable key for actually down servers and servers you're just waiting for.) (Without this, it would cause ready to never fire if a server is actually down)

Minor:

  • Change login error message
  • Now using internal method send instead of WebSocket#send
  • Typo fixes for errors
  • Internal method checkError renamed stringifyError
  • Library version defaulted when required instead of when Client is instanced
  • Internal audio functions changed heavily to support Node streams in the future
  • inviteURL minor change
Source: README.md, updated 2016-07-01