Breaking Changes:
messageReactionRemoveAll
&messageReactionRemoveEmoji
may be emitted with partial channels (ccb66c2)- Only
message.id
andmessage.channel.id
are guaranteed - This mirrors new behavior from
messageReactionAdd
&messageReactionDelete
from 0.12.0
- Only
Member#status
can beundefined
(cf256b5)- Reflects when the online status of a
Member
cannot be dtermined, common when using intents without presences
- Reflects when the online status of a
Client#getPruneCount()
&Client#pruneMembers()
now use options objects instead of multiple function arguments (47edd3c)
Additions:
- Added Allowed Mentions support to
Client#editMessage()
(8231537) - Added
Message
cross-posting support (bb37a5f, 8d6ca61) - Added support for searching
Member
s through REST (eb5e736) - Expose
User#publicFlags
(ef4b117) - Added option to limit
Shard
resume attempts before invalidating the session (da24059)- Workaround for some cases where an unknown bug could cause a session to fail to resume
- Added support for opus packet object streams in
VoiceConnection
(a4a4a6b, 55c5af9, 7b1d5cc) - Added
rawREST
event (e0cdcf0) - Added support for previewing
Guild
s (c846691) - Added support for getting a
Guild
over REST with approximate member/presence counts (fd43666) - Added support for filtering by role in
Guild
prune methods (47edd3c) - Expose Guild widget properties (aa6eb5f, 48c215b)
- Guild embeds have been deprecated by Discord and replaced by Guild widgets
Fixes:
- Fixed an error emitted during periods of mass reconnection (ab9b0a5)
- Fixed a bug preventing
guildMemberUpdate
from being emitted the first few times a Member is seen (d2488e9) - Fixed an error in handling
allowedMentions.users
(9415a99) - Switched to using Discord's millisecond-resolution ratelimiting headers (f3ed7d6)
- Added support for RFC-compliant
Retry-After
headers (6132c11)- May have caused excessive requests to be made when being ratelimited by non-Discord services like Cloudflare
- Started caching members from voice events (3a495e9)
- Fixed
roleNames
requirement check inCommandClient
(7e83718) - Improved handling of shard heartbeats & latency calculation (d919de4)
- Updated support for authorizing webhook execution (d7702cf)
- Now permits expanded custom emoji use if authorizing webhook execution with the bot token
- Fixed an error in handling voice user disconnects (cd76a50)
- Updated
Invite
to expose new properties (cc1363a) - Fixed handling errors in Member-related REST methods (977dbe4)
- Fixed outdated image URL constraints (0f4fbf5)
- Max size is 4096, not 2048
jpeg
is technically a supported extension
- Updated built-in system messages content (2aa81ee)
- Exported some missing structures (be63c9b, 10a97bd, 6510037)
- Fixed various items in docs (c2690fa, 1ec4c5f) & typings (8d95286, 1cf5c98, 1ec4c5f, cc1363a)