v0.2.0
Breaking changes
- APIs deprecated in v0.1.0 have been removed
- Node.js v18 and later is required to install v0.2.0 and newer
tweetnaclcannot be used with Dysnomia any longer due to missing support for new voice encryption modes. To continue using voice:- Install
sodium-native(native libsodium bindings):npm install sodium-native - If it is not possible to use native libraries, install StableLib:
npm install @stablelib/xchacha20poly1305@^1.0.0- Using version 2 and newer versions of
@stablelib/xchacha20poly1305is not supported due to the newer packages using ESM.
- Using version 2 and newer versions of
- Install
New features
- Bulk member banning (#130)
- Super reactions (#107)
- Polls (#139)
- Application-level emoji (#145)
- Message forwarding (#144)
- App monetization (#114, #176)
- User installable apps (#129)
- Soundboard (#172)
- Support for voice gateway v8 and new encryption modes (#156)
- Entry point commands (#162)
- Voice channel effect send and voice user connect events (#161, #165)
withResponsesupport forcreateInteractionResponse(#167)Interaction#createMessageandInteraction#editParentare now guaranteed to return a Message object (#167)messageUpdateevent now always emits full Messages (#154)- Avatar decorations (#68)
- The current application may now be updated (#118)
- Support for message nonces (#128)
- Webhooks may now delete their messages in threads (#141)
- Voice state updates now update the member object (#131)
- Support for various new properties in the API and constant updates (#106, #110, #117, #124, #126, #135, #136, #137, #133, #138, #151, #159, #171, #174, #175)
Bug fixes
- The
nsfwproperty in Text/VoiceChannel has been brought back (#112) Client#editGuildWidgetendpoint URL has been corrected (#119)getAllUsersand resume compression works again (#121)- The debug message when ratelimit headers are missing has been corrected (#146)
VoiceState#requestToSpeakTimestampis now correctly null instead of being NaN (#150)Constants.UserFlags.HYPESQUAD_ONLINE_HOUSE_1name has been corrected (#152)- Request-level errors are now correctly parsed (#163)
Client#editGuildScheduledEventcorrectly returns aGuildScheduledEventobject (#166)- Interaction construction from an uncached guild won't fail because of missing member ID (#181)
Deprecations
Channel#clientis going to become private in the next release - use your own client reference instead (#58)Client#getNitroStickerPackshas been renamed toClient#getStickerPacks(#109)PrivateChannel#recipienthas been migrated to a collection (#129) - this has been done to accomodate for the resurrection ofGroupChannel
Documentation and typings
SelectMenutype now allows for default values forautomatically populated menus (#111)OAuthApplicationInfohas been updated to include new properties (#153, #177)- Inline
@props were migrated to class members (#113)
Other changes
- Using voice in browser-like runtimes now triggers a runtime warning instead of being blocked outright (#108)
- Using voice in non-Node runtimes is not officially supported. Proceed at your own caution.
- Peer dependency syntax for
erlpackhas been corrected (#157)
Full Changelog: v0.1.3...v0.2.0