Skip to content

v0.2.0

Compare
Choose a tag to compare
@TTtie TTtie released this 18 Nov 22:16
· 7 commits to dev since this release
710917b

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
  • tweetnacl cannot 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/xchacha20poly1305 is not supported due to the newer packages using ESM.

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)
  • withResponse support for createInteractionResponse (#167)
  • Interaction#createMessage and Interaction#editParent are now guaranteed to return a Message object (#167)
  • messageUpdate event 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 nsfw property in Text/VoiceChannel has been brought back (#112)
  • Client#editGuildWidget endpoint URL has been corrected (#119)
  • getAllUsers and resume compression works again (#121)
  • The debug message when ratelimit headers are missing has been corrected (#146)
  • VoiceState#requestToSpeakTimestamp is now correctly null instead of being NaN (#150)
  • Constants.UserFlags.HYPESQUAD_ONLINE_HOUSE_1 name has been corrected (#152)
  • Request-level errors are now correctly parsed (#163)
  • Client#editGuildScheduledEvent correctly returns a GuildScheduledEvent object (#166)
  • Interaction construction from an uncached guild won't fail because of missing member ID (#181)

Deprecations

  • Channel#client is going to become private in the next release - use your own client reference instead (#58)
  • Client#getNitroStickerPacks has been renamed to Client#getStickerPacks (#109)
  • PrivateChannel#recipient has been migrated to a collection (#129) - this has been done to accomodate for the resurrection of GroupChannel

Documentation and typings

  • SelectMenu type now allows for default values forautomatically populated menus (#111)
  • OAuthApplicationInfo has 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 erlpack has been corrected (#157)

Full Changelog: v0.1.3...v0.2.0