github discordjs/discord.js 11.5.0

Overview

11.5.0 is being released to fix bugs from 11.4.2, backport new events from v12.0.0-dev and prepare users for the release of v12.0.0.

Deprecations

  • All user account-only methods have been deprecated (95a2d25b7df69fc7c76426b63f1014346f5edca4)
  • ClientUser#setGame in favor of ClientUser#setActivity (cd066849ad14a61229a95ff7796886ee1560388e)
  • Collection#exists in favor of Collection#some (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Collection#find and Collection#findKey's 'prop', 'val' overload is deprecated, pass a function instead (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Collection#filterArray, convert to an array and filter, or the other way around instead. (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Collection#findAll, filter and then convert to an array, or the other way around. In addition, the 'prop', 'val' overload is also deprecated - pass a function instead (09ddbcb88a42ccb51046c958a5960598b6c6d416)
  • Guild#createChannel when specifying options without using an options object (7ea88adeca3e5916b88ffeb2252c0271c6b92783)
  • Guild#defaultChannel, there will be no fallback/alternative (407500bf52c932fc184ec558df637d929dd417f5)
  • Permissions.flags: READ_MESSAGES in favor of VIEW_CHANNEL (1fe201ae90d554feafbd476bdc12dd00190d8a50)
  • Permissions#allowed and Permissions#denied in favor of Permissions#allow and Permissions#deny respectively (58ba2c7b14b826b6e30b0ffc653726a85365551b)

Additions

  • Add support for news and store channels (5e4654ee07b5408a2f8dbb7f52693239dacc203e, 8a086e04ab723ce2880e767c841639c406d2738a)
  • Add WEBHOOKS_UPDATE event (453098117fa64deb7fdd7bf93d6a402fe6400063, bd14d5d2fa9b5865ca9c2791281dc68494db929b)
  • add GUILD_INTEGRATIONS_UPDATE event (3345c77ce209513b9d86ba106a14701f9b6f532f)
  • Add WHITE as a ColorResolvable (5272cec6c8c3a24a79ced409a625d998ea7e289a)
  • Add support for creating a channel via Guild#createChannel with a position (7bc2e231cf4e8f1e2f0c45d77c57a28feb8cdb8c)
  • Add support for all possible options in Guild#createChannel (7ea88adeca3e5916b88ffeb2252c0271c6b92783, 691aaef07e49a53686ecf13a5ae37d01e1b9460f)
  • Add Guild#fetchBan (5cd6d8d380fec643ea8e0269e1aee8de160ec7b4)
  • Add withReasons parameter to Guild#fetchBans (5cd6d8d380fec643ea8e0269e1aee8de160ec7b4)
  • Add Guild#fetchEmbed and Guild#setEmbed (091b4fc21445c7415a250d48de11ae098299e6c7)
  • Add Guild#fetchVanityCode (c6201ee41b46b5d50f16f9750a1fd1d725141b02)
  • Add ClientOptions#retryLimit (e0f522a745e5562680a552a292b874388043431f)
  • Add Presence#clientPresence (a2a0c05102f228352e18c351a09787cbcb1e98f4)
  • Add support for RichEmbed#setTimestamp to accept a numeric timestamp (49e8bd9eddd204c357f3f4850767705b86233cba)
  • Add RichEmbed#length (890b1be714e9de953d119703dbad5126743ad4b8)
  • Add TextBasedChannel#lastPinTimestamp and TextBasedChannel#lastPinAt (ea3e575546c44962a1af6ce8a2fb8acec007e132)
  • Add TextChannel#rateLimitPerUser and TextChannel#setRateLimitPerUser (1e858872292a680e76d971f9e9adce87447c614f)
  • Add error code 50020 (359ddaf1dfa4cbeef20b75a628290868093fc8bd)
  • Add support for voice kicking (ee42bdfd7686e08ae236b0f090a514d71d8fbbfe)

Fixes

  • Correct webpack improperly handing deprecation warnings (7684ad3ca6c93ce698685d1faed0708e4d95ea1a)
  • Ignore voice states referencing an invalid channel (73aaab51061b21cc21f0102703ba203e155d359d)
  • You can now create dispatchers with a volume of 0 (745e18b82396feeb3278eab4b29c209cea4e67d2)
  • Emoji#fetchAuthor now rejects with a more descriptive error when missing MANAGE_EMOJI permissions (45a17e7ebd8f4a92a5acd4ded36f10d89fe0cb55)
  • Guild#addMember not resolving correctly if provided a user id (93bf430fc74e75c2d46103eee507abafe328fbcd)
  • Guild#deleteEmoji will reject non-emoji objects or id's (cd58599caf9de08597ad76c473253f68f0d5112f)
  • GuildChannel#lockPermissions not resolving permission bitfields correctly (1fc84a95d0f87d91711ec3dc9270899a93f023f4)
  • GuildMembers removed from their VoiceChannel when leaving the guild (b3f459091f6912c2897268dd02be985e567b83ea)
  • GuildMember#edit and GuildMember#setVoiceChannel throw a more descriptive error when passed bad input (a0ff72b556149334df525021a850096a15c27797)
  • Message#editedTimestamp being null after edits (616e0dd3984ac175e1333e949aac091c21fd5cb8)
  • Permissions.resolve not accepting a Permissions instance (5d889be6db65acc44f3a443b78d3165f9d6c0ed2)
  • Roles with the same position are sorted in the correct order (923c945b4bcacebafcd5e0210b485dfb702558c6)
  • Util.splitMessage now throws an error if any, not just one, chunk exceeds the max length (1618829cc69b6b7bf264da8dd9f4dbcdd48b0e30)
  • WebhookClient not handling ratelimit event properly (4ee3cf0b559924be605ea39be5917e151a813c05)
latest releases: 13.2.0, 13.1.0, 13.0.1...
2 years ago