github discordjs/discord.js 11.6.0

Overview

11.6.0 is being released to backport new features from 12.0.0-dev.

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)
  • Guild#deleteEmoji in favor of Emoji#delete (c355236f7f3bc7de5f421155c5ace870ff399180)
  • The old method signature of GuildChannel#clone in favor of using an options object (ab866d6b2e873fd81359d0f11ecd0e353021aabe)
  • 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)
  • PermissionOverwrites#allowed and PermissionOverwrites#denied in favor of PermissionOverwrites#allow and PermissionOverwrites#deny (db492e66e239c16accbfbd8bed16846f92f89de8)
  • The peer dependency @discordjs/uws is now deprecated and will be removed with the next major release (5556b05241eac2f768e7019fa53a01d338d7cb1a)
  • The peer dependency node-opus is now deprecated, use @discordjs/opus instead (6ab46491c80b2c67a3c9f6318fd62f6039c6c5c8)

Additions

  • Add support for @discordjs/opus (6ab46491c80b2c67a3c9f6318fd62f6039c6c5c8)
  • Add BitField class (46e8bc44fccc9b564ce2f58b89f3a1c32002e9a6)
  • Add Client#inviteCreate and Client#inviteDelete events (40afbc1d7e9e22760018bef6ea604113864454fc)
  • Add Client#messageReactionRemoveEmoji event and MessageReaction#removeAll (ab7f9e80b4b6f86ed8bf2ad56585188b3388dd36)
  • Add idle options to Collectors (ccd60438df2b4cc8761ad1244f096199450e5b2d)
  • Add Emoji#delete (c355236f7f3bc7de5f421155c5ace870ff399180)
  • Add Game#emoji, createdAt, and createdTimestamp (17b8b23b806fc26a2293bd851adca6c10c7f648e)
  • Add Guild#rulesChannelID, Guild#rulesChannel, Guild#publicUpdatesChannelID, and Guild#publicUpdatesChannel (b0aed050e3516d28fb05b71b65a88078b4816f91)
  • Add Guild#setBanner and banner to Guild#edit (01826aeefe52a9314cedbd28ef1701b3c8fe5f5f)
  • Document ChannelData#reason when creating a channel (7011c512fb0c4a71682d5c53679e7fa27953dfab)
  • Add the following properties, getters, and methods to Guild (e6a378b361680311776f7c5a815e3a53d9b3260c)
  • - banner and bannerURL
  • - description
  • - embedChannelID and embedChannel
  • - maximumMembers
  • - maximumPresences
  • - widgetEnabled
  • - widgetChannelID and widgetChannel
  • - vanityURLCode
  • - fetch
  • Add Integrations, Guild#fetchIntegrations, and Guild#createIntegration (c955fd00c7ef5835e022db45ac16d8fe24689455)
  • Handle new audit log types (Guild#fetchAuditLogs) (dbdb49ee1cc1540e25808534f34a291705250555)
  • - MEMBER_MOVE, MEMBER_DISCONNECT
  • - BOT_ADD
  • - MESSAGE_BULK_DELETE, MESSAGE_PIN, MESSAGE_UNPIN
  • - INTEGRATION_CREATE, INTEGRATION_UPDATE, INTEGRATION_DELETE
  • Add support for guild boosting (b8924369ea036509602a516b9a1ed4dcda202b1e)
  • - Emoji#available
  • - Guild#premiumTier
  • - Guild#premiumSubscriptionCount
  • - GuildMember#premiumSinceTimestamp (also premiumSince getter)
  • - Four new related message types:
  • - - USER_PREMIUM_GUILD_SUBSCRIPTION
  • - - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1
  • - - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2
  • - - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3
  • Add SystemChannelFlags, Guild#systemChannelFlags, Guild#setSystemChannelFlags, and systemChannelFlags to Guild#edit's options (330c410796b806e208afd118d931a8501998fbb3)
  • Add GuildChannel#permissionsLocked getter (2610bf57ae472ec263743ba559b23ca854a73a31)
  • Add support for clone options when cloning a channel using GuildChannel#clone (ab866d6b2e873fd81359d0f11ecd0e353021aabe)
  • Add GuildMember#selfStream (96037e107fc4eb7a19b8cd82187faa6d42429126, 36c0496ea5e0716a041fb85140e1351abab5c93a)
  • Cache Message#member and MessageMentions#members as they come from Discord (0f49d67e2ee80440f03a7dffca8be145b39a0ebf)
  • Add the following (7e9c995566d0ce4445d22fb1859b8a0370209e4b)
  • - Message#flags
  • - Message#reference
  • - flags to Message#edit
  • - Message#suppressEmbeds
  • - MessageMentions#crosspostedChannels
  • - CHANNEL_FOLLOW_ADD to MessageType
  • - User#system
  • Add GUILD_DISCOVERY_DISQUALIFIED and GUILD_DISCOVERY_REQUALIFIED to MessageTypes (b0d0b81c617deb88f8f72ff11cf9779f44502838)
  • Add MessageAttachment#spoiler (4ca18647baf80b2d749d4f12307be6439606791a)
  • Add the following properties to MessageReaction (88b675d38ad0994c8577f5bf8f63c3d5878b19d8)
  • - animated
  • - client
  • - createdTimestamp
  • - createdAt
  • - url
  • Add RichEmbed#spliceFields and RichEmbed.normalizeField (6eaf63fb7c8fecb5cbee9713f65d35ee7de900a1)
  • Add RichEmbed#toJSON returning an api-compatible object (97457e1de260e367bc6d4c362a77a7e968b1340c)
  • Add Permissions#any (367c80070f0b638a8658095dd1fe5de796af4c5e)
  • Add STREAM Permission (dcee09c30848884bff8f40ccdee006a689bb4ead)
  • Document Presence#client (f6d1db6a24a9efe589a13253b70304dfbadaaefa)
  • Add Presence#activities (17b8b23b806fc26a2293bd851adca6c10c7f648e)
  • Add ability specify a channel and reason when editing a through Webhook#edit (fbe9bc499b3f678b6a6236b03b1c632d245ab12e)
  • Add the following properties to Webhook (30adb378fcbdc7d932b72c950f4f8375c0c44864)
  • - avatarURL
  • - type
  • - createdTimestamp
  • - createdAt
  • - url

Fixes

  • Only use Client#setMaxListeners if the max listener count is not 0 (903f6ca75f438db3966c179381fb98657db7473c)
  • Return a user when resolving from guild in ClientDataResolver#resolveUser (464ef25898ebd88c95d3578aae6318ef4985d72b)
  • Always run postCheck when an event was received to allow stopping of the collector using the max option (099a1a47e87e00fc770fa3abb1c2c5ea27bf18d0)
  • Allow Guild#fetchMember to be used with a Snowflake (6f49aadf4f081c797728239759aab8620317c764)
  • Set the integer constant instead of 'text' when creating a channel as default (505df2ebb3b49503d98f635534e9644db7375925)
  • Default to an object with id property if the GuildAuditLogsEntry target was deleted (43c0a794e13173359fb9439f8a21e54338fb5b57)
  • Return GuildChannel in GuildChannel#setPosition instead of Guild (1121b2f7bff4caabce2812fb618167304cb00c66)
  • Mark messages of deleted channels as deleted (d1d0d75d4a6f5e4ed1a4cd341eb9f46aab6ae7f3)
  • Filter out duplicated roles when editing the roles of a GuildMember (f91ad7023b901e41f1049ce7458208d6c2a4a26d)
  • Allow owner to override GuildMember#manageable (364914fd35e0c882bb55fb2cdaf7916ea89c209e)
  • Do not mutate input arrays in Util.arraysEqual (fixing Guild#equals mutating Guild#features and the old member's roles in guildMemberUpdate) (8ddd0616a99c1a8c4631cfe0f71ae64d38bfc76a)
  • Return the correct link for twitch previews as part of RichPresenceAssets (a505a55e031593bafd6d638f9783f85d87e65965)
  • Internally disconnect and cleanup VoiceConnection when being forcibly disconnected (cbabc1663c12ae29fc94da90a207320a49b00e85)
  • Fix speaking events and voice receive (fbcd363ec97a06b924256f7d09f6caff6069b9af)
  • Remove opus decoder from map in stoppedSpeaking in VoiceReceiver (91600a69463f127340cb9abca2bcfc6b770bdf1b)
  • No longer use deprecated _trace in Ready and Resumed WebSocket handlers (684bb1bf36d02162d9970571194e3b3b183bd3a1)
  • Use for..of with Object.keys instead of for..in everywhere (6d7e1e4953a8662de5dc75d3ba433e6fc7b992c4)
latest releases: 13.2.0, 13.1.0, 13.0.1...
19 months ago