This repository was archived by the owner on Mar 25, 2020. It is now read-only.
Releases: izy521/discord.io
Releases · izy521/discord.io
Release list
2.4.0
Major
- Disconnect client if no pong is received after 15 seconds
- Destroy system encoder and individual decoders
- Raise
cjopusto^0.0.4 - Don't load
cjopusuntil absolutely needed Server#voiceSessionadded, and audio code changed.- Added
client.internals.pinggetter for the client's ping.
Methods
getUseradded
Minor
- Switch to
new BufferfromBuffer - Don't pull Oauth information if the account is not a bot.
- Switch endpoints for adding/removing roles.
- Removed examples for old library version and added a new audio example
use strictre-added
Pull Requests
2.0.0
Major
discord.ionow works in the browser and Node, with no tools!CJOpusEmscripten libopus bindings sonode-opusisn't required, still a WIP.new DiscordClientremoved, please usenew Discord.Client- Inline documentation (JSDoc)
discord.ioupdate notification removed- Logging in with username & password removed
Role#color_valuesmoved toDiscord.ColorsChannel#permission_overwriteschanged toChannel#permissionsalongside structural changes.- Channel permission editing introduced.
- Deprecated
disconnectedevent removed, please usedisconnect.
Methods
editChannelPermissionsadded.getAudioContextnow uses(error, stream)as callback arguments.listBansrenamed togetBans.listServerInvitesrenamed togetServerInvites.listChannelInvitesrenamed togetChannelInvites.serverFromChannelremoved.setGlobalRequestDelayremoved.setPresence'sgameproperty is now an Object that takesname,typeandurl.
Minor
- "Using [Encoder]" removed
- Typings temporarily removed until someone wants to PR them for the new methods.
- Fixed
typingbug insendMessage - Fixed editing servers
- Added TEXT_EXTERNAL_EMOJIS permission.
- WebSocket title emitter algorithm changed.
large_thresholdraisedd back to 250.- Use
zlib.gunzipinstead ofzlib.gunzipSyncfor older Node versions - Fix crash when bot is removed from servers
- Fix WebSocket
sendmethod.
Pull Requests
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) createDMChannelcallback arguments are now(error, response)createServerandeditServerdo not request the server regions before firing the request
(Check the documentation for correct regions)Role.prototype.Permissionsmoved toDiscord.Permissions- Methods moved outside of
DiscordClientconstructor - Removed
needleas a dependency. Using Node's internalhttpmodule.
(Looking to remove more deps!)
(Multipart was a pain in the ass) - Fixed DEPRECATED
serverFromChannelmethod'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
readyevent now has a 3.5 second wait period before it fires.
(Discord uses the sameunavailablekey for actually down servers and servers you're just waiting for.)
(Without this, it would causereadyto never fire if a server is actually down)
Minor:
- Change login error message
- Now using internal method
sendinstead ofWebSocket#send - Typo fixes for errors
- Internal method
checkErrorrenamedstringifyError - Library version defaulted when required instead of when
Clientis instanced - Internal audio functions changed heavily to support Node streams in the future
inviteURLminor change
1.12.0
Major:
- Switch to Gateway v5. Possible side effects, none immediately visible.
- Created some variables on Client construction (presenceStatus, connected, inviteURL)
- The library will no longer log
Gateway Websocket Disconnected: ${code}. Use thedisconnectevent:
client.on('disconnect', function(errMsg, code) {});membersobject created in channel constructor.- (Pull Request #69 (hue) ) Fix
Client#fixMessage's resolving of channels - (Pull Request #71 ) Handle incoming audio only if listener exists
Minor:
- Library version information moved outside of Client constructor.
- Introduction of error messages for application-specific WebSocket disconnection codes (4000 - 4999).
ffmpeg.jsexample updated to use token instead of email & password.mp3.jsexample updated to use token instead of email & password.- (Pull Request #70) Logos! Thanks to the talented @Adryd,
discord.ionow has a logo image thing. Orientation may change.