Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

1.13.0

Compare
Choose a tag to compare
@izy521 izy521 released this 01 Jul 23:09
· 342 commits to master since this release

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