github discordjs/discord.js 11.5.0

latest releases: @discordjs/core@1.1.1, @discordjs/rest@2.2.0, 14.14.1...
4 years ago

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 (95a2d25)
  • ClientUser#setGame in favor of ClientUser#setActivity (cd06684)
  • Collection#exists in favor of Collection#some (09ddbcb)
  • Collection#find and Collection#findKey's 'prop', 'val' overload is deprecated, pass a function instead (09ddbcb)
  • Collection#filterArray, convert to an array and filter, or the other way around instead. (09ddbcb)
  • 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 (09ddbcb)
  • Guild#createChannel when specifying options without using an options object (7ea88ad)
  • Guild#defaultChannel, there will be no fallback/alternative (407500b)
  • Permissions.flags: READ_MESSAGES in favor of VIEW_CHANNEL (1fe201a)
  • Permissions#allowed and Permissions#denied in favor of Permissions#allow and Permissions#deny respectively (58ba2c7)

Additions

  • Add support for news and store channels (5e4654e, 8a086e0)
  • Add WEBHOOKS_UPDATE event (4530981, bd14d5d)
  • add GUILD_INTEGRATIONS_UPDATE event (3345c77)
  • Add WHITE as a ColorResolvable (5272cec)
  • Add support for creating a channel via Guild#createChannel with a position (7bc2e23)
  • Add support for all possible options in Guild#createChannel (7ea88ad, 691aaef)
  • Add Guild#fetchBan (5cd6d8d)
  • Add withReasons parameter to Guild#fetchBans (5cd6d8d)
  • Add Guild#fetchEmbed and Guild#setEmbed (091b4fc)
  • Add Guild#fetchVanityCode (c6201ee)
  • Add ClientOptions#retryLimit (e0f522a)
  • Add Presence#clientPresence (a2a0c05)
  • Add support for RichEmbed#setTimestamp to accept a numeric timestamp (49e8bd9)
  • Add RichEmbed#length (890b1be)
  • Add TextBasedChannel#lastPinTimestamp and TextBasedChannel#lastPinAt (ea3e575)
  • Add TextChannel#rateLimitPerUser and TextChannel#setRateLimitPerUser (1e85887)
  • Add error code 50020 (359ddaf)
  • Add support for voice kicking (ee42bdf)

Fixes

  • Correct webpack improperly handing deprecation warnings (7684ad3)
  • Ignore voice states referencing an invalid channel (73aaab5)
  • You can now create dispatchers with a volume of 0 (745e18b)
  • Emoji#fetchAuthor now rejects with a more descriptive error when missing MANAGE_EMOJI permissions (45a17e7)
  • Guild#addMember not resolving correctly if provided a user id (93bf430)
  • Guild#deleteEmoji will reject non-emoji objects or id's (cd58599)
  • GuildChannel#lockPermissions not resolving permission bitfields correctly (1fc84a9)
  • GuildMembers removed from their VoiceChannel when leaving the guild (b3f4590)
  • GuildMember#edit and GuildMember#setVoiceChannel throw a more descriptive error when passed bad input (a0ff72b)
  • Message#editedTimestamp being null after edits (616e0dd)
  • Permissions.resolve not accepting a Permissions instance (5d889be)
  • Roles with the same position are sorted in the correct order (923c945)
  • Util.splitMessage now throws an error if any, not just one, chunk exceeds the max length (1618829)
  • WebhookClient not handling ratelimit event properly (4ee3cf0)

Don't miss a new discord.js release

NewReleases is sending notifications on new releases.