This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
1.13.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
, oruser
, now useserverID
,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
andeditServer
do not request the server regions before firing the request
(Check the documentation for correct regions)Role.prototype.Permissions
moved toDiscord.Permissions
- Methods moved outside of
DiscordClient
constructor - Removed
needle
as a dependency. Using Node's internalhttp
module.
(Looking to remove more deps!)
(Multipart was a pain in the ass) - Fixed DEPRECATED
serverFromChannel
method's crashing with some IDs
(Please usebot.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 sameunavailable
key for actually down servers and servers you're just waiting for.)
(Without this, it would causeready
to never fire if a server is actually down)
Minor:
- Change login error message
- Now using internal method
send
instead ofWebSocket#send
- Typo fixes for errors
- Internal method
checkError
renamedstringifyError
- 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