Skip to content

Releases: discordjs/discord.js

12.3.1

15 Aug 18:39
56e8ef2
Compare
Choose a tag to compare

Bug Fixes

  • User: set User#bot to false if not partial (#4706) (db512d8)

Reverts

  • Shard: "fix missing child_process silent option of Shard to allow listening to output" (#4707) (5249cf3)

12.3.0

14 Aug 20:00
a4dbfdc
Compare
Choose a tag to compare

Bug Fixes

  • APIMessage: respect allowedMentions with split (#4588) (a663ea4)
  • APIMessage: add reply user to allowedMentions (#4591) (b6ddd4c)
  • APIMessage: only pass allowedMentions if content is defined (#4269) (15b5350)
  • BaseManager: properly type valueOf (#4594) (b4d6510)
  • Collector: support async (#4123) (124afeb)
  • DataResolver: resolveInviteCode to support new domain (#4281) (5955498)
  • Guild: name acronym (#4104) (97cbbb1)
  • GuildChannel: make lockPermissions use parent overwrites (#4627) (599cde3)
  • Integration: user might not be present (#4691) (baffbdb)
  • Message: include MessageEmbed type (#4675) (bbfc715)
  • Message: Message#createdTimestamp uses deconstructed message id to get timestamp (#4632) (2be68e4)
  • MessageEmbed: explicitly mark proxyIconURL as undefined (#4097) (605ee85)
  • MessageReactionAdd: prevent double messageReactionAdd triggering (#4682) (6caeaeb)
  • Partials: correctly set properties as nullable (#4636) (980243f)
  • Extendables: correctly import VoiceState (#4616) (c5b6c4d)
  • PacketHandler: guild members chunk packet handler should… (#4092) (5af1a55)
  • Typing: dmChannel bulkDelete (#4115) (819e04a)
  • User: jsdoc for User#flags (#4094) (6fbaf0a)
  • Util: support empty array for flatten (#4590) (317f240)
  • Channel: consider #nsfw false if not present in data (#4593) (fab3153)
  • Guild: fix vanityURLUses desc, internally use fetchVanityData (#4335) (1c275af)
  • PresenceStatus: include invisible in typings (#4585) (276dddc)
  • GuildMember: set #nickname to null as the default value (#4641) (2adb581)
  • Typings: setSpeaking public (#4109) (e3303ac)
  • Typings: allow custom events (#4162) (47151fc)
  • Typings: correct spelling of APIError (#4687) (c55b5c8)
  • Typings: add optional Set to shardReady event (#4099) (97d23de)
  • Typings: Channel#delete returns bad type (#4118) (3df9993)
  • User: type dmChannel as nullable (#4609) (f9f3661)
  • Util: Fix cleanContent mention exploit (#4663) (fb1dd6b)
  • Client: in/de-crement max listener for client events (#4168) (407bc77)
  • Channel: typing start event emitting on non text based channels (#4349) (16847a3)
  • Voice: correctly set speaking data in the voice ssrcMap (d3c9384)
  • Webpack: add Buffer polyfill in browser (#4102) (67a74c3)

Features

Read more

12.2.0

17 Apr 11:00
d827544
Compare
Choose a tag to compare

Bug Fixes

  • BaseManager: remove declaration of remove method (#4069) (a07c3c2)
  • ClientApplication: type fetchAssets as resolving with an a… (#4078) (72a7f2b)
  • Guild: sort text, news, and store channels together (#4070) (fcacf1b)
  • Message: update MessageMention's roles on message edit (#4016) (9e4c39a)
  • PermissionOverwrites: resolveOverwriteOptions description (#4088) (d709656)
  • Presence: add missing userID property to declarations (#4013) (691e96c)
  • StreamDispatcher: correct property types (#4059) (9ba4eff)
  • Typings: GuildPreview#features and Integration#type (#4080) (72a33cb)

Features

  • ClientOptions: allow setting default allowedMentions (#4085) (7c6000c)
  • DataResolver: prefer streams over buffers (#4075) (12187ef)
  • ESModules: importing for esm modules (#3998) (0a3759f)
  • Guild: PUBLIC_DISABLED and WELCOME_SCREEN_ENABLED features (#4009) (849c632)
  • GuildMemberManager: customisable timeout for _fetchMany (#4081) (ff3454e)
  • UserFlags: User#flags (#4060) (2e5a647)
  • Message: add allowedMentions to MessageEditOptions (#4071) (a8db988)
  • Constants: support 4096 image size and jpeg format (#4031) (1330e2d)

11.6.4

05 Apr 17:13
11.6.4
da39e85
Compare
Choose a tag to compare

Overview

11.6.4 is being released to fix a bug related to the grouping of reaction related endpoints.

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

Fixes

  • Group reaction requests into one handler per channel (747d76d)

12.1.1

27 Mar 21:28
6544d22
Compare
Choose a tag to compare

Bug Fixes

  • Typings: use Channel instead of *ChannelTypes in ClientEvents (#4001) (5e49126)

12.1.0

27 Mar 20:09
f16a079
Compare
Choose a tag to compare

Bug Fixes

  • Channel: ensure partial DMChannels get created (#3954) (8c0a940)
  • Guild: default max presences value (#3970) (0f38d80)
  • GuildEmojiManager: throw an error if image resolving fails (#3934) (ca75eb5)
  • GuildMemberRolesManager: type error should mention Role and Snowflake too (#3931) (e5264ab)
  • MessageReaction: fetching a removed partial custom emoji (#3955) (a36a65b)
  • Partials: correctly document properties for partialized structures (#3922) (8b906c6)
  • RequestHandler: a global timeout implies limited (#3950) (7b38f46)
  • Typings: client message event should not emit PartialMessage (#3983) (f2fdb93)
  • TypingStart: typing methods returning falsy values (#3939) (495cfa9)
  • Util: cleanContent should remove mentions after formatting mentions (#3936) (44ac5fe)
  • WebsocketShard: pass ignore ACK when Discord asks for a beat (#3993) (65e8c92)
  • GuildDelete always emit guildUnavailable when a guild becomes unavailable (#3975) (2157401)

Features

  • AllowedMentions: add support for MessageOptions#allowedMentions (#3893) (df324e2)
  • GuildPreview: implement support for "preview" endpoint (#3965) (88133d0)
  • Permissions: Adds VIEW_GUILD_INSIGHTS (#3928) (5b9cdc5)
  • Types: support type-guarding using Channel#type string literal (#3918) (69d69f2)
  • Typings: allow event listener type param inference (#3944) (2be9eba)

Reverts

11.6.3

20 Mar 08:08
de0cacd
Compare
Choose a tag to compare

Overview

11.6.3 is being released to fix a regression introduced in 11.6.2.

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

Fixes

  • messageReactionRemove emission (bb4cb3e)

12.0.2

08 Mar 19:07
36050d0
Compare
Choose a tag to compare

Bug Fixes

  • APIRequest: only use form data when actually sending files (#3917) (a4f7e07)
  • Guild: resolve role id and call existing handler (#3904) (f387337)
  • MessageEmbed: skip validation of fields when inside a message (#3894) (3e169cb)
  • VoiceChannel: adapt #manageable to check for CONNECT (#3885) (61ef46f)

Performance Improvements

  • VoiceConnection: skip redundant volume transformer on join (#3916) (69d4153)

11.6.2

08 Mar 18:55
11.6.2
08865a9
Compare
Choose a tag to compare

Overview

11.6.2 is being released to fix a bug involving the ReactionCollector.

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

Fixes

  • Only modify users and total when a reaction was actually collected (20075e3)

12.0.1

01 Mar 22:34
Compare
Choose a tag to compare

Fixes

  • Guild: fix verificationLevel in edit method (66e625c)
  • MessageMentions: lazy require GuildMember (cd746f3)