github discordjs/discord.js 11.2.0

Deprecations

  • Guild#defaultChannel is now deprecated, there will be no fallback/alternative (407500bf52c932fc184ec558df637d929dd417f5)
  • Permissions: READ_MESSAGES is now deprecated, use VIEW_CHANNEL instead (1fe201ae90d554feafbd476bdc12dd00190d8a50)

Additions

  • MESSAGE_DELETE action for audit logs (712305dece0aaae0d6883757a78c772a07d2c39c)
  • MESSAGE action for audit logs (7d7f1b2446323da7f2f11a68ad8a18aa53edf3ec)
  • Invite#presenceCount and Invite#memberCount (ee622f7d9fd7c8714b709730e5d7873d3e7cc5d7)
  • Webhook#send now accepts multiple files (fd7cb41ee665460c2e7dc95f909c92e3f07bc7eb)
  • Invite#textChannelCount and Invite#voiceChannelCount (28a29d5d9f18f19f275d494a57574003d8c58bf3)
  • NSFW search option (3ec08d5976b7b1cbe4d3aab950e21da56883b16c)
  • MEMBER_ROLE_UPDATE action for audit logs (2f1eb71a3ffd371b266fcf4dcb99e257468e6fd7)
  • Guild#setExplicitContentFilter (e3232bdb2bc91a418b09ff411e7ddf105902c396)
  • Expose DiscordAPIError and API error constants (b9434ed112d8bf1bd9ac803dd9583f514fca6a6e)
  • count optional argument to Collection methods (d513c4bbb9bb845fc64dcfe250ff0f1b95c0ee2a)
  • TextChannel#nsfw is now a property to indicate if a channel is nsfw or not (ed84d76a42d468c6c50461684f1b7a19918e46ec)
  • Audio bitrate support (cba4cc2400038bb914fc0adf64ad80383601eade)
  • Guild#nameAcronym (cd4a69d009e9765f2f2ca87feede7435abdda902)
  • Reasons on every possible action that can take a reason (be4ccb368697ce29701b6e3849e1b0c5f74f4621)
  • Guild#createRole now takes into account the position you pass and sets it accordingly (be4ccb368697ce29701b6e3849e1b0c5f74f4621)
  • OAuth2Application#resetToken (f7664b01a2d01e669f661ad36d8fcbe32d29be0d)
  • Retry on error code 500 (f7664b01a2d01e669f661ad36d8fcbe32d29be0d)
  • Support for UserGuildSettings (f7664b01a2d01e669f661ad36d8fcbe32d29be0d)
  • Attachment structure to make sending files/embeds easier (0b22d9a774f385d7fd9c6996616d37a6ba1b002d)
    • You can now pass Attachments and RichEmbeds as MessageOptions or send embeds directly
    • ResolveFile now accepts NodeStreams in addition to the already current options.
  • Support for GroupDMChannel#iconURL, GroupDMChannel#setIcon,
    GroupDMChannel#setName and GroupDMChannel#removeUser (17d7f5c723b942a5bf8aec11fe2f1120b7666a55) (1fe201ae90d554feafbd476bdc12dd00190d8a50)
  • Support for Guild#afkChannel, Guild#systemChannel and Guild#setSystemChannel (e76ebb4fcb90f7ba3b830be1035daf16ceac6b52)
  • You can now pass a Collection to the filter of a Collector (bce5b677adea4d64e7d6097e399c0b6042399957)
  • Internally, DiscordAPIError now takes a #path to help narrow down issues (95e22c2f12519fc6659c3f1664af11ff3175f7fe)

Fixes

  • mentions to Mentions in RESTMethods (e96daba7c0d2c31d54a67485c26176337ab5452f)
  • fetchMeMentions to fetchMentions in RESTMethods (3a736285674e04a2726ad2803a4d23b4d9ce71a1)
  • Guild#deleteEmoji and editing related Emoji methods (41e0be1db3957bd8067de1b7598580ecb1fc7c23)
  • GuildAuditLogsEntry#extra now properly returns values (7d7f1b2446323da7f2f11a68ad8a18aa53edf3ec)
  • GuildAuditLogs Target.INVITE uses the right properties now (1fc6e3b91efb831df1559d91666ab4261793c776)
  • fetchMentions in RESTMethods sends a proper auth header and params are now fully optional (1e115efa562cf6c195daef14787fdd2ae1a9bd22)
  • Client#login Reject token errors properly (798018713b6b6a048e317d61eda981b9dce8c12c)
  • GuildMember#setVoiceChannel moves member properly again (e3c3a4fd60a0e18ef20345c77f7224472fba405f)
  • Properly reject instead of throw in GuildMember#addRole and GuildMember#removeRole (45bc653988904efe903220453eb9738f56d4e97f)
  • Infinite loop in DiscordAPIError reaching maximum call stack size (6eced4d465cc790052b95bf4a008746db1c000d0)
  • Unhandled exception when using µws (19d4d3bf2ce2f1833722a5a8810e19aa605890e8)
  • Don't ignore non-missing engine errors (2116fba4c270c1cc3fdd796a85f6a7b6c367316c)
  • Remove unused VoiceBroadcast#guaranteeOpusEngine (1ed6bbc4b4dc562a14b470f01d81af72c0a178c3)
  • VoiceConnection#authenticateFailed race condition (b5de89a973d011a6628ec371362881b7a420aba9)
  • Client#token is not enumerable anymore (f1a74f214e7c66a754dbbad98a9ccca70cb389c7)
  • Client#setTimeout uses args correctly now (4ce4dc019eeaa21d5b49d7ce800d3f84edee6555)
  • String.toLowerCase() errors in GuildAuditLogs (822c1f533cf2a215c93814ba4f5a1a4b5ae7a557)
  • DiscordAPIError#message sometimes being undefined (a56a24d042c3ba5a8066b5baddf64fb8542564b9) (bdc61a4068146d52b5cc39da154062b9f3ce5c39) (8a9b6cbdb5a0df837e202babc300486848790364)
  • Double increments on the reaction count when the client reacts (2611efe9c1c592f33a27d419b06cc817214843f4)
  • Consistently store message reactions keyed under their unicode (425efe1fe4b8d679e0a8b1ab24c52345bb78b127)
  • OAuth2Application#reset resets the token now as well (f7664b01a2d01e669f661ad36d8fcbe32d29be0d)
  • Webhooks options now function properly (splitting as whole, with files and embeds) (0b22d9a774f385d7fd9c6996616d37a6ba1b002d)
  • You can now reset the icon and splash with Guild#edit (0b22d9a774f385d7fd9c6996616d37a6ba1b002d)
  • The burst ratelimit handler properly rejects with a DiscordAPIError on all 4xx now (0b22d9a774f385d7fd9c6996616d37a6ba1b002d )
  • Buffers can again be send directly in the files array of the Message Options (95e22c2f12519fc6659c3f1664af11ff3175f7fe)
  • ADMINISTRATOR permission edge case which didn't resolve permissions correctly (0d6b7ce6419ea8c7fad55d515cac37c45aba8a98)
latest releases: 13.2.0, 13.1.0, 13.0.1...
4 years ago