Releases: discordjs/discord.js
Releases · discordjs/discord.js
12.5.3
12.5.2
12.5.1
12.5.0
Bug Fixes
- Guild: fetch member if already in the guild (#4967) (643f96c)
- GuildMemberUpdate: cache incoming members & use partials if enabled (#4986) (2e940e6)
- MessageReaction: add client property to typings (#5003) (042e071), closes #5002
- MessageReaction*Action: correctly cache incoming members and users (#4969) (8b91ac5)
- PackageLock: reinstall GitHub docgen dev dependency (#4958) (ed8b3cc)
- Shard: don't pass event arguments to exit handler (#4957) (adf2e87)
- User: only assign to bot initially or if info is actually present (#4990) (eaecd0e)
Features
12.4.1
12.4.0
Bug Fixes
- Action: Don't crash when partials are disabled (#4822) (8fa3a89)
- Action: Sanity-Check if Discord includes all required data (#4841) (4e79e39)
- Actions: Avoid crash in InviteCreate with unknown channel (#4882) (dd12912)
- ESM: add missing exports (#4911) (4bbe716)
- Guild: cache fetched widget data (#4760) (7ba9440)
- GuildChannel: Default
parentID
tonull
(#4881) (6e4308b) - GuildChannel: make setTopic argument nullable (#4875) (b9ad510)
- GuildEmojiCreate: Prevent double fire from emoji creation (#4863) (6261dd6)
- GuildEmojiManager: check for guild in methods that use it (#4886) (728b3f9)
- GuildMember: properly check permissions for hasPermissions (#4677) (7db6978)
- GuildMemberManager: options.roles on 'prune' (#4838) (a45cc11)
- GuildMemberManager: Use actually random nonce in fetch (#4884) (937153a)
- Message: use Promise#reject instead of Throw on Message#delete (#4818) (1e63f37)
- MessageManager: throw if delete param is not MessageResolvable (#4825) (13d64e6)
- Partials: Use more user objects available from the gateway (#4791) (eeb4c14)
- Rest: resolved a regression, added retried AbortError (#4852) (d234165)
- Shard: avoid caching null child in eval/fetchClientValue (#4823) (77c0788)
- Typing: change NodeJS.Timer into NodeJS.Timeout (#4755) (405b487)
- Typings: bot cannot be null (#4719) (e0e2711)
- Typings: remove Partial types from some events (#4781) (a28754b)
- Util: throw token invalid for fetching rec. shard amount (#4779) (77b6a7d)
- *: correctly import extendable classes (#4744) (6aab9c3)
Features
- ActivityTypes: add Competing (type 5) (#4824) (9c76129)
- Channel: add isText() type guard (#4745) (b0ab37d)
- Client: allow options for generateInvite (#4741) (727b29c)
- Guild: add includeApplications option for fetchIntegrations (#4762) (3141f7c)
- GuildManager: add AFK and system channel options in create (#4837) (f2bbad3)
- Message: add messageEditHistoryMaxSize to limit stored msg edits (#4867) (c412cd7)
- Message: add support for crossposting (#4105) (bcb7c72)
- Message: allow custom emoji format for react (#4895) (30808f9)
- NewsChannel: add support for following (#4805) (f83b3d7)
- Rest: switch queue to AsyncQueue (#4835) (32fe72f)
- UserFlags: add renamed UserFlags (#4761) (f973163)
Reverts
12.3.1
12.3.0
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
- Client: trigger userUpdate on GUILD_MEMBER_UPDATE (#4697) (178439e)
- BitField: add problematic bit to error (#4617) (0225851)
- Guild: add fetchVanityData (#4103) (8030612)
- Guild: discovery splash (#4619) (5be6630)
- Guild: updates for Community guilds (#4377) (57ca3d7)
- Guild: fetch withCount param (#4111) (0266917)
- GuildEmoji: cache the author (#4334) (b7740d4)
- GuildManager: adds GuildManager#fetch (#4086) (2742923)
- GuildMemberManager: nonce and chunk_count for _fetchMany (#4130) (ec0227a)
- GuildMemberManager: prune roles query param (#4142) (f1194af)
- Message: support pin and unpin with reason (#4586) (c79ac4d)
- MessageMentions: fix typings/docs, add resolvables support (#4339) (214981f)
- Module: add ReactionManager to exports (#4372) ([2b6e6d8](https://g...
12.2.0
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
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 ofClientUser#setActivity
(cd06684)Collection#exists
in favor ofCollection#some
(09ddbcb)Collection#find
andCollection#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 ofEmoji#delete
(c355236)- The old method signature of
GuildChannel#clone
in favor of using an options object (ab866d6) Permissions.flags
:READ_MESSAGES
in favor ofVIEW_CHANNEL
(1fe201a)Permissions#allowed
andPermissions#denied
in favor ofPermissions#allow
andPermissions#deny
respectively (58ba2c7)PermissionOverwrites#allowed
andPermissionOverwrites#denied
in favor ofPermissionOverwrites#allow
andPermissionOverwrites#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)