Releases: discordjs/discord.js
Releases · discordjs/discord.js
9.1.1
Fixes
- Members are recreated after leaving/being kicked from a guild (#667, 84fe65e)
guildMemberAdd
is fired for each member in a guild upon instantiation (#668, 9b45294)- There is a delay between playing audio streams (#632, f192d16)
- Multi-part data when sending files breaks (#675, 4255dcd)
- Audio streams play at an abnormal rate after pause/resumes, and also play abnormally fast when starting (#672, 0d417b6)
9.1.0
Additions
Collection
andShard
exports for external use (799054d)Collection.some/every
, and improved.filter/map
(594836b)Client.emojis
(bcab880)Client.status
to get the websocket status (6dfe160)ClientOptions/MessageOptions.disable_everyone
to prevent accidental mentions (3b7d5e8)ClientUser.setStatus
streaming URL parameter (db9d5b8)TextBasedChannel.fetchMessage
to fetch a single message (48e7fad)TextBasedChannel.sendFile
content
parameter (9888cef)TextBasedChannel.sendMessage
andMessage.edit
with arrays for the content (automatically joined with newlines) (9f0db9d, f328640)Message.cleanContent
with mentions replaced by plain text (9bef99c, bbc9df0)Message.isMentioned
(bf3c283)Message.edits
with a history of all edits (17bee80)MessageEmbedAuthor
(bd113ee)Guild.fetchMember
to retrieve a single guild member (user must be cached first) (c7b4cf3, 465ff07)Guild.defaultChannel
(9bdf670)Guild.ban
to ban a non-member (9d694d2)Guild.createRole
data
parameter to create a role and immediately update it with the given data (e1bda86)GuildMember.addRole/addRoles/removeRole/removeRoles
(dc7b070)GuildMember.permissions
andGuildMember.hasPermission
for the permissions of a member with their roles only (57acd4f)Channel/Emoji/Guild/Role/User.creationDate
(943767d, 7fea0a3)StreamOptions
for various voice methods (f7a542f)- Improved
ShardingManager
(2c6b804) - Made the
client
property on most structures non-enumerable, so it won't display inconsole.log
orutil.inspect
- Loads of internal organisation and cleanup
- Lots of documentation updates
Fixes
fetch_all_members
doesn't work for newly joined guilds (b9caa2e)max_message_cache
default doesn't match the docs (7fe032c)User.bot
is inaccurate (#657, 85fae72)User.game
is not reset when a user stops playing (#666, dbaaa8d)Role.edit
always throws an error (ab4707f)@everyone
permission overwrites not being taken into account (978cf9d)- Potential issue when guild members are updated (8f04fae)
- EPIPE error when skipping songs (#635, 47a164b)
- Handle WS error events silently (#607, dd62389)
9.0.2
Library completely rewritten, please see documentation for upgrading advice.
8.1.0
Additions:
- Preemptive ratelimiting (prevents most 429 IP bans unless you have a lot of shards)
- Added support for notes
- Added support for message pinning
- Added support for getting a single message (for OAuth bot accounts only)
- Added more detailed error messages when closing gateway connections
- Added voiceSpeaking event
- Added tonicdev support
- Added support for getting details on an OAuth app (bot account must be owner or member of the app)
Fixes:
- Fixed a bug where some voice states wouldn't update
- Fixed some more voice crashes
- Fixed some game changes not firing presence updates
- Fixed crash bugs
- Fixed Discord.Constants export bug
- Fixed removal of Cache items
- Fixed editing channels
Misc:
- Documentation fixes
- Documentation page for examples
- Enabled autoReconnect by default
8.0.0
Additions:
- Added support for nicknames
- Added support for role and channel mentions
- Added support for Twitch/YouTube stream games
- Added support for ADMINISTRATOR, CHANGE_NICKNAME, and MANAGE_NICKNAMES permissions
- Added support for bulk delete
- Added error event to VoiceConnection
- Added guildCreateTimeout for slow internets
- Added voice connection timeout
- Added support for voice channel bitrates and user limits
- Added Message.server (shortcut to Message.channel.server)
- Added permissionsOf(role) support
- Added createdAt properties to some objects with IDs
- Added voiceSwitch event
- Added disableEveryone option
- Added /tmp to possible TokenCacher directories
Fixes:
- Fixed friends-related crashes
- Fixed permissionsOf crash
- Fixed sendFile content resolution
- Fixed autoReconnect loop
- Fixed selfbots blocking mobile push notifications
- Fixed incorrect documentation
- Fixed incorrect role data
- Fixed old references to self_mute/self_deaf
- Fixed invalid cache data crash
- Fixed invalid server member data crash
- Fixed permissionsOf calculation errors
- Fixed lastMessageID not being updated
- Fixed mention resolver crash
- Fixed user avatar updates
- Fixed some roles being null
- Fixed playArbitraryFFmpeg
- Fixed UDP close errors on VoiceConnection
- Fixed incorrect bot properties
- Fixed some zombie FFmpeg proccesses
- Fixed leaving servers
- Fixed incorrect server data
- Fixed updateChannel sending invalid data
- Fixed logout for bot accounts
- Fixed potential binary crash while joining voice channels
Misc:
- Upgraded some dependencies
- messageUpdated now fires even if the original message is not found
7.0.1
Additions:
- Added sending file via sendMessage
- Added updateServer
- Added autoReconnect
Fixes:
- Fixed ratelimiter
- Fixed incorrect documentation
- Fixed sendFile
- Fixed voice state update crash
7.0.0
Additions/Changes:
- Basic support for new OAuth bot accounts
- Login via
loginWithToken(INSERT_OAUTH_BOT_TOKEN_HERE)
- Public bots (bots that can be invited to other servers) must be converted to OAuth bot accounts by May 1st
- Login via
- Friends support (OAuth bots can't have friends though)
- Encrypted voice support
- Pause/resume voice stream support
- Muting/deafening/unmuting/undeafening users support
Fixes:
- High CPU usage fix
- Potential playXXX() error fix
- Voice volume fixes
- Some voice error fixes
- Node 0.12 crash fix
- Fixed forceFetch for guild stream (ready will take much longer though, thanks Discord Devs)
- Fixed overwritePermissions wiping existing permissions
6.0.0
6.0.0
Major stability fixes, bug fixes, and new features
- sendFile attempts to detect names - commit
- sendFile can reupload from URLs - commit (patched in later commits)
- Ability to validate existing invite - commit
- Finished converting to game names - commit
- No longer auto-acks messages - commit
- Can now edit server - commit
- userUpdated merged into presence and now gives old user and new user - commit
- Ability to get existing invites - commit
- Fixed xUpdated events - commit
- Ability to login via token - commit
- Ability to move users to voice channels - commit
- memberHasRole and membersWithRole helper functions - commit
- Merge addRoleToMember(s), merge removeRoleFromMember(s) - commit
- Addition of voiceStateUpdate event - commit