This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
Releases: izy521/discord.io
Releases · izy521/discord.io
2.4.0
Major
- Disconnect client if no pong is received after 15 seconds
- Destroy system encoder and individual decoders
- Raise
cjopus
to^0.0.4
- Don't load
cjopus
until absolutely needed Server#voiceSession
added, and audio code changed.- Added
client.internals.ping
getter for the client's ping.
Methods
getUser
added
Minor
- Switch to
new Buffer
fromBuffer
- 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 strict
re-added
Pull Requests
2.0.0
Major
discord.io
now works in the browser and Node, with no tools!CJOpus
Emscripten libopus bindings sonode-opus
isn't required, still a WIP.new DiscordClient
removed, please usenew Discord.Client
- Inline documentation (JSDoc)
discord.io
update notification removed- Logging in with username & password removed
Role#color_values
moved toDiscord.Colors
Channel#permission_overwrites
changed toChannel#permissions
alongside structural changes.- Channel permission editing introduced.
- Deprecated
disconnected
event removed, please usedisconnect
.
Methods
editChannelPermissions
added.getAudioContext
now uses(error, stream)
as callback arguments.listBans
renamed togetBans
.listServerInvites
renamed togetServerInvites
.listChannelInvites
renamed togetChannelInvites
.serverFromChannel
removed.setGlobalRequestDelay
removed.setPresence
'sgame
property is now an Object that takesname
,type
andurl
.
Minor
- "Using [Encoder]" removed
- Typings temporarily removed until someone wants to PR them for the new methods.
- Fixed
typing
bug insendMessage
- Fixed editing servers
- Added TEXT_EXTERNAL_EMOJIS permission.
- WebSocket title emitter algorithm changed.
large_threshold
raisedd back to 250.- Use
zlib.gunzip
instead ofzlib.gunzipSync
for older Node versions - Fix crash when bot is removed from servers
- Fix WebSocket
send
method.
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) 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
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 thedisconnect
event:
client.on('disconnect', function(errMsg, code) {});
members
object 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.js
example updated to use token instead of email & password.mp3.js
example updated to use token instead of email & password.- (Pull Request #70) Logos! Thanks to the talented @Adryd,
discord.io
now has a logo image thing. Orientation may change.