github discordjs/discord.js 11.4.0

Overview

  • Fixes bugs from 11.3
  • Backports features such as Rich Presence

Deprecations

  • Guild#defaultChannel, there will be no fallback/alternative (407500bf52c932fc184ec558df637d929dd417f5)
  • Permissions: READ_MESSAGES, use VIEW_CHANNEL instead (1fe201ae90d554feafbd476bdc12dd00190d8a50)
  • ClientUser#setGame, use ClientUser#setActivity instead (cd066849ad14a61229a95ff7796886ee1560388e)
  • Collection#filterArray, convert to an array and filter, or the other way round instead. (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Collection#findAll, same as Collection#filterArray but also pass a function instead (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Collection#exists, use Collection#filter and convert to a boolean instead. (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Collection#find and Collection#findKey's 'key', 'property' overload, pass a function instead. (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • All user bot methods (95a2d25b7df69fc7c76426b63f1014346f5edca4)

Additions

  • Backport GuildChannel#manageable getter (49ad8cc2ccac996e634f80ccf5b67c1fbd521cb2)
  • Backport Guild#mfaLevel property (7b9e84dff59c63a3b5cb69c2775bbb7d509a44c5)
  • Backport the ability to dynamically generate Snowflakes (d9a091f674eb892c4c2b4112e275524e49a1ee8a)
  • Backport DiscordAPIError#method property (8700e965c5dec8ba8f2ddda6db5de4fe7ced1337)
  • Backport support for discord.gg/invite/<code> invites when using Client#fetchInvite (21326f67a0205bdae067526fd5ffeee9a2db598e)
  • Backport Emoji#deletable getter (ed8ab9178271346fd76a6390a996578725f9bf9c)
  • Backport Permissions#valueOf method (2d831269abc342146381479a09685454aadba696)
  • Backport 2 basic role colors, LUMINOUS_VIVID_PINK and DARK_VIVID_PINK (96b115ef7b505a677df96665560e10c7b26bd20d)
  • Backport Guild#verified getter (9169958264bb6a450a1c1687cf9f533d048f7f8d)
  • Backport TextChannel#setNSFW method (54913d9edb6f8334d929d21c05bcd31d94ee5650)
  • Backport Game#toString method (c0ca73a40c7d2074466d1ae054c05495e12bf089)
  • Backport Emoji#fetchAuthor method (dd7eedbd48e2925866965826a48dc7f1b01f76ac)
  • Backport GuildChannel#fetchInvites method (99041671f0d9bbf8756b251e1bbb61aa03628a60)
  • Backport GuildMember#manageable getter (9bb883161900223473bb7a669b7f54cae2532a21)
  • Backport Collection#sweep method (2b6592ed54f34d1d7a0a5c5a759fb5be898c7efe)
  • Backport Collection#tap method (de7d90ada337a9a2a090471fda5ea19cdd2d6862)
  • Backport Client#rateLimit event (0d90798c6c344b47594aec373a83d7181ca0a8f8) (6f02be2b2e0d23a7de9dcae17887cf39a7bb38dc)
  • Backport Collection#partition method (f456f4c3c0e101c13c507534117d600acda60c3d)
  • Backport RichPresence (6de5acbac386c4acc467097549b71c34b6dca0a7)
  • Backport deleted property (3fa9ed1f42588e11b8d82ff928b835229cf7988e)
  • Backport DefaultMessageNotifications (0702a0fcda693a0f79646965b28c868e16d98842)
  • Backport permissions improvements for Guild#createChannel and add Guild#replacePermissionOverwrites and GuildChannel#lockPermissions (524a15df0bd1b279f6187465ede3fac63be73c2b)
  • Backport Webhook#token enumerability (96011cf68f82f2a4f359f07d1e3fc2962cf2f902)
  • Backport Message#url (41f6eaa6350245b6f139b509b2482201046eec56)
  • Backport PRIORITY_SPEAKER permission (c33ab1ea618e913da1fa21bdad701a46a287daed)
  • Backport TextChannel#bulkDelete accepts Snowflake[] parameter (c76f3048afa6cac1fe7e5c60a64a96dc6a97d844)
  • Backport GuildChannel#permissionsFor that also takes a RoleResolvable (1e5b5b83c8e91e775e4c1da9c7f910d43279e689)
  • Backport Permissions#toArray (6da423fc072a6899ea357e2d72444fdd1a619389)

Fixes

  • Allow GuildChannel#edit to clear its parent (6e5b6743380ba7d76b3b2ae9da298959a3433959) and topic (92b421607e409711ce05260acd54078a59ea368a)
  • Allow Role#edit to set the permissions to 0 (no permissions) (7c0b6173dd6fd4bd98fe4986b4a4ef31d99b38bb)
  • 0 is a valid PermissionsResolvable (7c0b6173dd6fd4bd98fe4986b4a4ef31d99b38bb)
  • Properly resolve permissions in Client#generateInvite (c387e96078d990f4ae06b62206476af221e967e0)
  • Remove bulk deleted messages from cache (7c37a0d386c38bc07d9b0c23b69c287e6f1550c1)
  • Resolve with the correct member in RESTMethods#addMemberRole and RESTMethods#removeMemberRoles (de78a8d0b4e7601a37d9a739fb2e0ad407648047)
  • Do not update Message#editedTimestamp when there is none in the payload (3ba26ad972a315b9c4d6bfdd3a5c3607fb5528c0)
  • Do not throw an error when accessing MessageEmbed#hexColor when the embed has no color (b60ee25038907eb47b84729cc175e6ce7b505dc4)
  • Use Object.values instead of Object.keys to stay compatible with node 6 (feb0991c46d589664bfe8ade9c4f4f8515a93e21)
  • Use the provided voice IP from discord directly instead of resolving its host name (b05622766b45122591a2a005e8b63b2afd999c36)
  • Reject on null image resolvable with a meaningful error (44fefdfa49eda743fb24169bf29859ad18943165)
  • Throw a descriptive error when not finding an opus engine (33a4232652a476c590dd522aeaf841c357d7705e)
  • ClientUser#setActivity incorrectly resolving with the ClientUser instead of its Presence (a85d801a1237519cdc595fda0df06fd16e437550)
  • Clean up event listener on failure in GuildMember#addRole and GuildMember#removeRole (a89de09855efd3ce5ded3a8a69a809734020c0b6)
  • Increase and decrease the amount of max listeners dynamically to avoid MaxListenersExceededWarning when using Collectors (60288d070438dc8958cf502f1bf91025d9ef1519)
  • Use Buffer.alloc instead of deprecated new Buffer (bd9c9ce4e0a6a0d4717834f4d095614c61c99e19)
  • Allow to remove the color of a role (2f2e28183bfe04a0db9f6b78deeee81728f3207f)
  • Allow to send files of url which does not resolve to a buffer by default (ae28f52e0d6584a292a3a8fa1918bfa7af109411)
  • Decrement Guild#memberCount when an uncached member leaves (15a8e177104cda455421a12c0a1c7722687ca891)
  • Avoid permanently hanging of the burst ratelimit handler (379061987c786a0870c21bb858612e40a37215ed)
  • Correctly resolve nicknames of users when creating a group dm with a bot (f23b61794c8bce64bfc63fb2bcd82849c5416bbe)
  • Properly validating CONNECT permissions in VoiceChannel#deletable (0387d34ab4900a0d2b936422f1b5609129d5528e)
  • ShardClientUtil#send erroneously rejected on large payloads (eef4a4ad1706bef1d4dccbfa4abccd918cad7537), (493ba7303792848f4616146cdf6f918ec6423c57)
  • MessageReaction#fetchUsers will now properly resolve with the fetched user rather than the full cache (f2388830465d886c77e77e0046f32040034d380b)
  • GuildMember#joinedAt is not guaranteed (ecf6e2b62dab450b72a93f68650cecfd7d53bdfa), (bd3d8d48c0c1d132383e2fb3768b6251a61c68e7)
  • Do not cache webhook users to preserver the correct username and avatar for all their messages (8a3ae875bb880dc9f0c1636adff2b477c0353fa4)
  • Ensure TextChannel#bulkDelete always returns a Promise (72346fb47eadb812416054e984ec4ab6663202ea)
  • Proper rejection when providing a falsy token (448f38429d25da468e1586780376f83ed3999456, a667e44c4d972460162f4ae73d0d24539b5d4533)
  • Ensure VoiceChannel#bitrate gets set (695ff1e70f63c090f0578cd1c874c81f6fcd75ed)
  • Keep reply option and do not throw an error when passing Message#reply an embed (1d9edec56719b805bb48892994f611b1868c5a6b)
  • Fix channel bitrate not set when missing unnecessary permissions (695ff1e70f63c090f0578cd1c874c81f6fcd75ed)
  • Do not try to send voice packets via udp when there is no socket (d81441f627efef83a7d3bd125ee2f46c118ccfc9)
  • Proper rejection of using Emoji#fetchAuthor when an emoji is managed (d685e39af44a17c6794b5d4eb93883b0d08d8d46)
  • Allow constructing RichEmbed from MessageEmbed (6d70da5b1e7b8f0e8ad9bd5120cff9e4391783f9, 87b4b23596796fc351aafa87c497c601e3a8f306)
latest releases: 13.2.0, 13.1.0, 13.0.1...
3 years ago