Skip to content

Latest commit

 

History

History
1376 lines (1088 loc) · 146 KB

CHANGELOG.md

File metadata and controls

1376 lines (1088 loc) · 146 KB

Changelog

All notable changes to this project will be documented in this file.

14.18.0 - (2025-02-10)

Bug Fixes

  • Guild: Type error with permissionOverwrites (#10527) (8e1e1be)
  • Incorrect relative path (#10734) (b7f1ebc)
  • PresenceUpdate: Correctly add user regardless of their properties (#10672) (7c1b73c)
  • InteractionResponses: Mark replied true for followUps (#10688) (32dff01)

Documentation

  • Use link tags to render links on the documentation (#10731) (66b9718)
  • Message: Improve message snapshots description (#10709) (31df3d2)

Features

  • Message forwards (#10733) (89c076c)
  • Incident Actions (#10727) (41dee51)
  • website: Type parameters links, builtin doc links, default values (#10515) (43235d4)
  • PartialGroupDMChannel: Add missing properties (#10502) (5e66f85)
  • Subscription: Add renewalSkuIds (#10662) (efa50fc)
  • website: Include reexported members in docs (#10518) (aa61c20)

Refactor

  • Use throw instead of Promise.reject (#10712) (2663d76)
  • Remove data resolver exports (#10701) (4606041)
  • IntegrationApplication: Move common properties to Application (#10627) (95db597)

Styling

Typings

  • Fix recurrence rule types (#10694) (193a5e9)
  • ThreadOnlyChannel: Remove incorrect messages property (#10708) (44a1e85)
  • Add undefined to flags for exactOptionalPropertyTypes (#10707) (d2e1924)
  • Allow only ephemeral for defer reply (#10696) (68dd260)
  • Remove createComponent and createComponentBuilder (#10687) (0047a49)

14.17.3 - (2025-01-08)

Bug Fixes

  • Message: Ensure channel is defined for clean content (#10681) (46bf8f0)
  • Use resolve() for PermissionOverwrites (#10686) (7280d4e)

14.17.2 - (2025-01-02)

Bug Fixes

  • InteractionResponses: Check correct property for deprecation (77804cf)

14.17.0 - (2025-01-01)

Bug Fixes

  • InteractionResponses: Do not use in if a string is passed (ff42d7a)
  • Use Message#interactionMetadata (#10654) (6087088)
  • InteractionResponses: Properly resolve message flags (#10661) (b2754d4)
  • ThreadChannel: Make ownerId always present (#10618) (7678f11)
  • MessageReaction: Address undefined burst properties (#10597) (76968b4)
  • ThreadChannel: Address parameter type on fetchOwner() (#10592) (56c9396)
  • InteractionResponses: Throw error on deleting response of unacknowledged interaction (#10587) (21c283f)
  • GuildScheduledEvent: Handle null recurrence_rule (#10543) (831aafa)

Documentation

  • Correct discord-api-types URLs (#10622) (76042f0)
  • Typos (#10628) (388783d)
  • Add note about idempotence to role add/remove routes (#10586) (565fc01)
  • Client: Fix incorrect managers descriptions (f79ba52)
  • discord.js: Remove utf-8-validate (#10531) (297e959)

Features

  • ClientApplication: Add webhook events (#10588) (7b2a2e3)
  • InteractionResponses: Support with_response query parameter (#10636) (622acbc)
  • ClientApplication: Add webhook events (#10588) (ae1deac)
  • EntitlementManager: Support get entitlement (#10606) (a367e2c)
  • Add subscriptions (#10541) (4cca33d)
  • Emit reaction type on gateway events (#10598) (bda3128)
  • Voice Channel Effect Send (#10318) (34343c6)
  • GuildMember: Banners (#10384) (b1ded63)
  • Add ApplicationEmoji to EmojiResolvable and MessageReaction#emoji (#10477) (1fc87a9)
  • Recurring scheduled events (#10447) (97c3237)
  • Message forwarding (#10464) (c122178)

Refactor

  • FetchApplicationCommandOptions: Use Locale over LocaleString (#10625) (7ce6f2f)
  • Use cache.get() for snowflakes, resolve() otherwise (#10626) (dedaa5d)
  • Remove extra traversing (#10580) (33533b7)
  • InteractionResponses: Deprecate ephemeral response option (#10574) (be38f57)
  • Deprecate reason parameter on adding and removing thread members (#10551) (72e0c99)
  • Deprecate fetching user flags (#10550) (3d06c9d)

Testing

  • Remove unused test (#10638) (53cbb0e)

Typings

  • Add missing Caches managers (#10540) (13471fa)
  • Remove newMessage partial on messageUpdate event typing (#10526) (5faf074)

14.16.3 - (2024-09-29)

Bug Fixes

  • BaseInteraction: Add missing props (#10517) (6c77fee) by @monbrey
  • GuildChannel#guildId not being patched to undefined (#10505) (2adee06) by @Qjuh

Typings

  • MessageEditOptions: Omit poll (#10509) (665bf14) by @TAEMBO

14.16.2 - (2024-09-12)

Bug Fixes

  • ApplicationCommand: Incorrect comparison in equals method (#10497) (3c74aa2) by @monbrey
  • Type guard for sendable text-based channels (#10482) (dea6840) by @vladfrangu

Documentation

  • Update discord documentation links (#10484) (799fa54) by @sdanialraza
  • Message: Mark interaction as deprecated (#10481) (c13f18e) by @sdanialraza
  • ApplicationEmojiManager: Fix fetch example (#10480) (4594896) by @sdanialraza

Typings

  • Export GroupDM helper type (#10478) (aff772c) by @Qjuh

14.16.1 - (2024-09-02)

Bug Fixes

  • Message: Reacting returning undefined (#10475) (9257a09) by @vladfrangu
  • Transformers: Pass client to recursive call (#10474) (4810f7c) by @SpaceEEC

14.16.0 - (2024-09-01)

Bug Fixes

  • Message reaction crash (#10469) (13dc779)
  • MessagePayload: Crash when resolving body (#10454) (dd795da)
  • Shard: Add env, execArgv, and argv for worker-based shards (#10429) (b0f8df0)
  • GuildAuditLogsEntry: Correct mapped AuditLogChange objects (#10438) (45f7e1a)
  • GuildMemberManager: Fix data type check for add() method (#10338) (ab8bf0f)
  • Consistent debug log spacing (#10349) (38c699b)

Documentation

  • Correct documentation for BaseInteraction#inCachedGuild (#10456) (bddf018)
  • Lowercase "image" URL (#10386) (785ec8f)
  • Update rule trigger types (#9708) (757bed0)

Features

  • User-installable apps (#10227) (fc0b6f7)
  • Super reactions (#9336) (a5afc40)
  • Use get sticker pack endpoint (#10445) (1b1ae2f)
  • VoiceState: Add methods for fetching voice state (#10442) (9907ff9)
  • Application emojis (#10399) (5d92525)
  • Attachment: Add title (#10423) (c63bde9)
  • Add support for Automated Message nonce handling (#10381) (2ca187b)
  • GuildAuditLogsEntry: Onboarding events (#9726) (3654efe)
  • Premium buttons (#10353) (4f59b74)
  • Message: Add call (#10283) (6803121)
  • Invite: Add type (#10280) (17d4c78)
  • User: Add avatarDecorationData (#9888) (3b5c600)

Refactor

  • Use get guild role endpoint (#10443) (bba0e72)
  • actions: Safer getChannel calls (#10434) (87776bb)
  • GuildChannelManager: Remove redundant edit code (#10370) (9461045)

Typings

  • Use ThreadChannel and AnyThreadChannel consistently (#10181) (1f7d1f8)
  • Client: EventEmitter static method overrides (#10360) (9b707f2)
  • Fix wrong auto moderation target type (#10391) (bbef68d)
  • ApplicationCommandManager: Snowflake fetch (#10366) (b8397b2)

14.15.3 - (2024-06-02)

Bug Fixes

  • Message: Properly compare attachments and embeds (#10282) (a468ae8)
  • Throw error on no message id for Message#fetchReference() (#10295) (638b896)
  • ThreadChannel: Invalid owner fetch option (#10292) (27d0659)
  • Action: Ensure all properties on getChannel() are passed (#10278) (92c1a51)
  • docs: Some link tags didn't resolve correctly (#10269) (914cc4b)
  • actions: Handle missing poll object (#10266) (7816ec2)

Refactor

  • GuildChannelManager: Improve addFollower errors (#10277) (555961b)

Typings

  • Forum starter messages do not support polls (#10276) (35207b0)
  • Add defaultValues to respective select menu components data (#10265) (c2432d5)

14.15.2 - (2024-05-05)

Bug Fixes

  • PollAnswer: FetchVoters route changed to MessageManager (#10251) (30d79e8)

14.15.1 - (2024-05-04)

Bug Fixes

  • MessageManager: Poll methods don't need a channel id (#10249) (0474a43)

14.15.0 - (2024-05-04)

Bug Fixes

  • Message: Not crosspostable if has a poll (#10246) (a6b9f1b)
  • actions: Always emit message create for own messages (#10211) (798f28c)
  • Embed: Address equals method issue (#10152) (ddc927f)
  • types: Export ReadonlyCollection (#10184) (6cc5fa2)
  • Anchor link for events (0efd1be)
  • resolveColor: Address case for numbers (#10115) (3755e66)
  • Invert deletable message types list (#10093) (42bc5d2)
  • BaseClient: Fall back to userAgentAppendix (#10113) (b16647e)
  • InteractionResponses: Check if ephemeral message flag is used (#10021) (62e31cb)
  • Replace internal calls to Emoji#url (#10025) (941642a)
  • Export "ESM" types when discord.js is imported in ESM land (#10009) (e412a22)
  • website: Discord-api-types links, URL links and some minor doc issues (#9990) (57c414b)
  • website: Cross package deprecated links (#9981) (802ec63)
  • Minify mainlib docs json (#9963) (4b88306)
  • website: Misc improvements (#9940) (b79351b)

Documentation

  • Remove unused Locale typedef (#10191) (f1f2683)
  • ActionRow: Fix deprecated message (#10130) (f67da74)
  • ApplicationCommandPermissionsManager: Remove incorrect comment (#10123) (e9d6547)
  • Split docs.api.json into multiple json files (597340f)
  • Convert comment into private remark (#10097) (bfc7bb5)
  • BaseInteraction: Correct return type of member (#10096) (f48787e)
  • ThreadMember: Fix docblock async return type (#10058) (4824ac1)
  • CategoryCreateChannelOptions: Update reference (#10031) (8ace6fa)
  • resolvePartialEmoji: Add @internal to all overloads (#10033) (e245a39)
  • PermissionOverwriteManager: PermissionsFlagsBit typo (#10004) (b992019)
  • Fix links in @deprecated tags (#9976) (9868772)

Features

  • MessageManager: Poll methods (#10239) (6cf094c)
  • Consumable entitlements (#10235) (9978870)
  • Polls (#10185) (a1aeaeb)
  • ClientUser: Add support for setting bot banner (#10176) (de14c92)
  • GuildBanManager: Add bulkCreate() method (#10182) (b6bdd57)
  • Local and preview detection (79fbda3)
  • MessageCreateOptions: Add enforceNonce (#10129) (992aa67)
  • Add support for using keyword on discord.js Client and WebSocketManager (#10063) (543d617)
  • Webhook: Allow setting appliedTags on send() (#10027) (33674be)
  • Premium application subscriptions (#9907) (c4fcee3)
  • website: Show union members of type aliases (#10001) (a44ada6)

Performance

  • Presence: Prefer boolean client status comparison before activity checks (#10213) (4ad2858)

Refactor

  • ThreadChannel: Use single thread member endpoint (#10136) (f500ad6)
  • Docs (#10126) (18cce83)
  • Remove usage of mixin on error classes (#10128) (f48cb2a)
  • resolveColor: Prioritise number type check (#10116) (d4472f8)
  • Messages: Improve ColorConvert error (#10108) (fc1f8ae)
  • formatters: Add support for object and name param in formatEmoji() (#10076) (7b8e0de)
  • Document relevant types as @internal (#9974) (2b8ac35)
  • ThreadMemberManager: #remove accepts UserResolvable (#10000) (179af38)

Typings

  • Add Poll to Message (#10245) (cb961f5)
  • Generic for Webhook type (#10188) (980a2b7)
  • Fix duplicate props in merged interfaces (#10160) (a1010c6)
  • Update accessibility modifiers on constructors (#10147) (efa3cac)
  • Builder.from: Fix wrong types (#10071) (bfbd62e)
  • Use readonly array / collection types for user input (#10045) (bcd4c2c)
  • InteractionReplyOptions: Allow setting MessageFlags.SuppressNotifications (#9199) (c89c343)
  • Replace Mixins with interface merging (#10094) (54106db)
  • DirectoryChannel: Ensure directory channels cannot contain user mentions when stringified (#10043) (db56324)
  • Change Awaitable to void (#10017) (1acc9ab)
  • Omit unnecessary methods from .options (#10003) (17a6f5d)
  • InteractionWebhook: Add client (#9997) (30f6a5f)

14.14.1 - (2023-11-12)

Bug Fixes

  • Emoji: id set as undefined edge case (#9953) (cc07a28)
  • BaseClient: Default in objects properly (#9952) (f93abf7)

Documentation

  • Use preferred nullable syntax (?T over T | null) (#9946) (1e4ef35)

Refactor

Typings

  • Use wrapper utilities (#9945) (4bc1dae)

14.14.0 - (2023-11-12)

Bug Fixes

  • Client: Ensure destroyed connections are not ready (#9942) (b5e23ec)
  • Webhook: Do not call client.deleteWebhook in delete (#9786) (31d914e)
  • GuildManager#fetch: Inject shard id (#9921) (85753a9)
  • Prevent 'undefined' debug message on intentional shard closure (#9846) (0e0b85b)
  • Role: Calculate position correctly when rawPositions are equal (#9871) (0529b2a)
  • GuildScheduledEvent: Use if...else pattern and handle partials (#9802) (32d614c)

Documentation

  • Message: Remove duplicated word 'of' in description (#9923) (85a78f9)
  • GuildMember: Clarify display color (#9891) (e38d03f)
  • Remove duplicate APIEmoji (#9880) (8cfadb6)
  • Consolidate API types (#9881) (44a3cbf)
  • Remove FileOptions (#9855) (eaabcdf)
  • DiscordjsErrorCodes: Deprecate unused properties (#9790) (4588e07)
  • ApplicationCommandManager: Id parameter can take options (#9664) (ed14135)
  • Attachment: Add MIME types link to contentType (#9824) (85b2498)
  • Fix "its" typo (#9825) (c50809e)
  • GuildMember: Clarify timeout parameter wording (#9800) (8d97e2d)
  • create-discord-bot: Support bun in create-discord-bot (#9798) (7157748)

Features

  • Default select menu values (#9867) (4ff3ea4)
  • Mainlib docs on new website (#9930) (da455bc)
  • cleanContent: Add slash commands and emojis (#9809) (c2349d4)
  • Emoji: Add imageURL() (#9788) (b6c762c)
  • Onboarding mode and edit method (#9647) (7671a83)
  • Support new application properties and patch endpoint (#9709) (1fe7247)
  • BaseChannel: Add isThreadOnly() (#9847) (699b232)
  • StageInstanceManager: Add guildScheduledEvent to create() (#8885) (931c3ed)
  • Support default_thread_rate_limit_per_user in channel creation (#9273) (1e5c14b)
  • Add media channels (#9662) (571aedd)
  • Support widget image URL (#9782) (b6a2441)
  • GuildAuditLogsEntry: Expose extra integrationType in relevant log types (#9796) (3109798)
  • Add support for teams update (#9805) (c66636d)
  • Presence: Expose sync_id in Activity (#9766) (485dd71)

Refactor

  • utils: Remove mergeDefault (#9938) (5b0aa92)
  • Use proper variable names in callbacks (#9840) (11f6955)
  • GuildAuditLogsEntry: Abstract reduce logic into a new function (#9845) (19ea0ba)
  • Stickers are free (no more "premium" packs) (#9791) (e02a59b)

Typings

  • Partials: Add toString() method to supported Partials (#9835) (7422d9f)
  • MessageEditOptions: Correct attachments type (#9874) (2aa3250)
  • UserContextMenuCommandInteraction: Nullify targetMember (#9844) (3c043d8)
  • Don't include dom types (#9831) (9dbc954)
  • Client: Fix isReady narrowing (#9828) (6404c01)

14.13.0 - (2023-08-17)

Bug Fixes

  • Action: Do not add the client user as a recipient (#9774) (24fbb11)
  • DMChannel: Correct partial typo (#9773) (c1ff545)
  • CachedManager: Allow overriding constructor for makeCache (#9763) (346fa57)
  • types: Fixed CachedManager constructor arguments in type (#9761) (b3c85d3)
  • Action: Do not set undefined values (#9755) (d8e3755)

Documentation

  • EmbedBuilder: @readonly length (#9778) (8f572a6)
  • WebhookEditOptions: Add all of the types (#9776) (d5be424)
  • Update Node.js requirement to 16.11.0 (#9764) (188877c)

Features

  • Client: Add deleteWebhook method (#9777) (d90ba8d)
  • ClientPresence: Allow setting activity state (#9743) (9ed1b59)
  • ClientApplication: Approximate guild count and new GET route (#9713) (632a9b4)
  • Role: Add flags (#9694) (3b18e5b)
  • Attachment: Add flags (#9686) (692f0fc)
  • Add Client#webhooksUpdate (#9732) (0de071d)

Typings

  • GuildInvitableChannelResolvable: Allow forum channels (#9775) (727dc09)
  • Make activity name required (#9765) (0a9a3ed)
  • BaseButtonComponentData: Narrow component type (#9735) (a30d46c)

14.12.1 - (2023-08-01)

Bug Fixes

  • BaseClient: Fix destroy method (#9742) (1af7e5a)

14.12.0 - (2023-07-31)

Bug Fixes

  • ChannelUpdate: Check against unknown channels (#9697) (7fb91c5)
  • Action: Use existing recipients if available (#9653) (719e54a)
  • Everyone role members (#9685) (0803eb5)
  • awaitMessageComponent with MessageComponentInteractions (#8598) (b61e4fb)
  • ThreadManager: Fix internal crash upon conditionally resolving thread members (#9648) (a6dbe16)
  • User: Check global name in equals (#9631) (8f3bd38)
  • WebSocketManager: Await WebSocket destroy (#9519) (75308f2)
  • Client: Safe call for possibly null WebSocket (#9600) (24a6149)
  • ThreadManager: Ensure fetchActive() only returns active threads in a channel (#9568) (53aa24d)
  • LimitedCollection: Allow items to be stored if keepOverLimit is true when maxSize is 0 (#9534) (9345d1b)
  • AutocompleteInteraction: Prevent snake casing of locales (#9565) (7196fe3)

Documentation

  • Change Channel to BaseChannel (#9718) (e5effb6)
  • BaseChannel: Remove APIChannel (#9717) (125405f)
  • BuildersSelectMenuOption: Update link (#9690) (ede9f4e)
  • ClientOptions: Change default value of sweepers in docs (#9591) (911e6ef)
  • Client: Correct invite gateway permission checks (#9597) (e1b6eee)
  • Fix broken links to new documentation (#9563) (d01e8aa)

Features

  • Add ws option support for "buildIdentifyThrottler" (#9728) (6307f81)
  • Client: Add guildAvailable event (#9692) (3c85fb2)
  • User avatar decorations (#8914) (8d97017)
  • Add silent option to ShardingManager (#9506) (df40dcd)
  • EmbedBuilder: Add .length (#8682) (53c17e0)
  • Guild onboarding (#9120) (dc73c93)
  • Add resume event in shard (#9650) (a73d54e)
  • presence: Re-introduce image resolving for other platforms (#9637) (73c2f8a)
  • Add message to send resume event to shard (#9626) (a873ec1)
  • Support new username system (#9512) (1ab60f9)
  • GuildAuditLogsEntry#extra: Add missing channel property (#9518) (2272321)

Performance

  • Channel: Linear speed position getter (#9497) (09b0382)
  • Role: Improve members getter (#9529) (37181ab)

Refactor

  • User: Remove deprecation warning from tag (#9660) (cf8012c)
  • GuildMember: Make _roles property non-enumerable (#9387) (46167a7)
  • rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
    • BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global fetch
    • BREAKING CHANGE: The raw method of REST now returns a web compatible Respone object.
    • BREAKING CHANGE: The parseResponse utility method has been updated to operate on a web compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

Typings

  • MessageManager: Allow comparison of messages again (#9612) (a48d0ef)
  • AutoModerationActionExecution: Add forum channels as a possible type in channel() (#9623) (d64330a)
  • ModalSubmitFields: Components is an array (#9406) (1cab79f)
  • Use readonly arrays and const type parameters in places (#9641) (cd69868)
  • BaseInteraction: appPermissions not null in guilds (#9601) (6c2242f)

14.11.0 - (2023-05-06)

Bug Fixes

  • WebSocketManager: Properly emit shard error events (#9521) (e627468)
  • WebSocketManager: Emit raw ws events again (#9502) (c429763)

Documentation

  • Client: Update Sapphire's snowflake utility links (#9501) (1b7981e)

Features

  • Guild: Safety alerts channel and mention raid protection (#8959) (6b2c3fb)

Performance

  • Role: Linear speed position getter (#9493) (8e9a2b4)

Refactor

  • GuildChannel: Simplify constructor (#9499) (f2ad076)

Typings

  • StringSelectMenuComponentData: options is required (#9515) (d7b18f0)

14.10.2 - (2023-05-01)

Bug Fixes

  • Correct isJSONEncodable() import (#9495) (201b002)
  • Client: generateInvite() scope validation (#9492) (b327f49)

14.10.1 - (2023-05-01)

Bug Fixes

  • Client: Spelling of InvalidScopesWithPermissions (ac9bf3a)

Refactor

  • ShardClientUtil: Logic de-duplication (#9491) (a9f2bff)

14.10.0 - (2023-05-01)

Bug Fixes

  • ShardClientUtil: Fix client event names (#9474) (ad217cc)
  • BaseClient: Prevent user agent mutation (#9425) (217e5d8)
  • BitField: Use only enum names in iterating (#9357) (40d07fb)
  • Use new permission name (#9274) (d2d27ce)
  • Message#editable: Fix permissions check in locked threads (#9319) (d4c1fec)
  • Fix external links (#9313) (a7425c2)

Documentation

  • AutoModerationRule: Update docs (#9464) (1b15d31)
  • APITypes: Document role & user select menu components (#9435) (c6ca5a8)
  • BaseMessageOptions: Fix embeds and components (#9437) (5c52bb9)
  • InteractionResponses: ShowModal docs change (#9434) (7d34100)
  • Use ESM code in examples (#9427) (ce287f2)
  • Generate static imports for types with api-extractor (98a76db)
  • Options: Fix links and invalid syntax (#9322) (86e5f5a)
  • Cleanup MessageCreateOptions and MessageReplyOptions (#9283) (300059c)
  • Events: Document auto moderation events (#9342) (79bcdfa)
  • Add SnowflakeUtil (#9371) (8ffcf77)
  • Use stable tag (#9343) (c0f2dd7)
  • Remove JSONEncondable (#9344) (b2eec5f)

Features

  • Attachment: Voice messages (#9392) (3e01f91)
  • BaseInteraction: Support new channel payload (#9337) (29389e3)
  • RoleTagData: Add guildConnections (#9366) (2dddbe1)

Performance

  • RoleManager: Dont call Role#position getter twice per role (#9352) (bfee6c8)

Refactor

  • WebSocketManager: Use /ws package internally (#9099) (a9e0de4)
  • Remove fromInteraction in internal channel creation (#9335) (794abe8)

Typings

  • AutoModerationActionMetadataOptions: Make channel property optional (#9460) (d26df5f)
  • CategoryChannel: Ensure parent and parentId are null (#9327) (8218ffc)
  • GuildTextBasedChannel: Remove unnecessary exclusion of forum channels (#9326) (7ff3d52)

14.9.0 - (2023-04-01)

Bug Fixes

  • Add support for new guild feature GUILD_WEB_PAGE_VANITY_URL (#9219) (de1aac6)
  • Resolving string bitfield (#9262) (7987565)
  • AutocompleteInteraction: Send name_localizations correctly (#9238) (1864d37)
  • Keep symbols in actions manager (#9293) (984bd55)
  • scripts: Accessing tsComment (d8d5f31)
  • ClientUser: No mutation on edit (#9259) (abd6ae9)
  • Message#editable: Update editable check in threads locked (#9216) (22e880a)
  • ThreadManager: Add members and conditionally include hasMore (#9164) (e9a8eb3)
  • ThreadManager: Respect cache and force in fetching (#9239) (cc57563)
  • TextBasedChannelTypes: Add GuildStageVoice (#9232) (51edba7)

Documentation

  • Describe private properties (#8879) (2792e48)
  • Differ User#send (#9251) (384b4d1)
  • Fix compare position example (#9272) (d16114c)
  • Role: Fix example for comparePositionTo() (#9270) (bc641fa)
  • Add more examples (#9252) (bf507ab)
  • FetchArchivedThreadOptions: before respects archive_timestamp, not creation timestamp (#9240) (178c8dc)
  • Update APISelectMenuComponent (#9235) (56cf138)

Features

  • Guild: Add max_stage_video_channel_users (#8422) (34bc36a)
  • website: Render syntax and mdx on the server (#9086) (ee5169e)
  • Add GuildBasedTextChannelTypes (#9234) (5f93dcc)

Refactor

  • Call GuildBanManager#create() directly (#9263) (f340f3b)
  • FetchThreadsOptions: Remove active (#9241) (519e163)

14.8.0 - (2023-03-12)

Bug Fixes

  • snowflake: Snowflakes length (#9144) (955e8fe)
  • Actions: Inject built data by using a symbol (#9203) (a63ac88)
  • Message#deletable: Add check for deletable message types (#9168) (e78b8ad)
  • Message: bulkDeletable permissions should be retrieved later for DMs (#9146) (a9495bd)
  • AutoModerationActionExecution: Transform action (#9111) (9156a28)
  • MessageReaction: toJSON() infinite recursion (#9070) (f268e1d)
  • ThreadChannel: Insert starter message from threads created in forum channels (#9100) (0b76ab4)
  • ApplicationRoleConnectionMetadata: Export the class correctly (#9076) (071516c)
  • Don't auth for interaction showModal() (#9046) (b803a9a)
  • WebSocketShard: Zombie connection fix (#8989) (876b181)
  • Keep other properties in triggerMetadata (#8977) (d8dd197)
  • escapeX: Emojis with underlines (#8945) (07b597d)
  • WebSocketShard: Either start close timeout or emit destroyed but never both (#8956) (43ce2a5)
  • DMChannel: recipientId edge case (#8950) (7ce9909)
  • Return only boolean for disabled (#8965) (6614603)
  • Export missing escapeX() functions (#8944) (25c27ea)
  • WebSocketShard: Only cleanup the connection if a connection still exists (#8946) (5eab5fc)
  • Add @discordjs/formatters to dependency list (#8939) (18b3a19)
  • resolveColor: Invalid colors (#8933) (c76e170)
  • WebSocketShard: Clear listeners on reconnect (#8927) (aa8c57d)
  • Re-export formatters (#8909) (b14604a)

Documentation

  • MessageManager: Add clarification to fetch messages (#9222) (f5ec1ca)
  • Make interactionResponse as optional (#9179) (664cccb)
  • Fix typos (#9127) (1ba1f23)
  • chatInputApplicationCommandMention: Parameters are not nullable (#9091) (6f78e82)
  • No @type description and reveal info block (#9097) (405f940)
  • ThreadEditOptions: Move info tag back to invitable (#9020) (f3fe3ce)
  • Fix a typo in the MentionableSelectMenuInteraction link (#9000) (6d7a143)
  • ApplicationRoleConnectionMetadata: Add documentation (#8976) (2e22b31)
  • Fix malformed overridden documentation (#8954) (0b8b114)
  • GuildForumThreadManager: Fix sticker type (#8940) (dd62be0)
  • Fix deprecated links (#8907) (976b234)
  • UserFlagsBitField: Make .Flags static (#8902) (c48ff5e)

Features

  • Collector: Add lastCollectedTimestamp (#9044) (4458a13)
  • StageChannel: Add messages (#9134) (ffdb197)
  • AutoModerationActionExecution: Add channel, user and member getters (#9142) (095bd77)
  • AutoModeration: Support custom_message (#9171) (c1000b8)
  • ThreadMemberManager: Support pagination fetching (#9035) (765d5a3)
  • InteractionResponse: Add new methods (#9132) (dc9924f)
  • GuildMember: Add flags (#9087) (76b2116)
  • Client: guildAuditLogEntryCreate event (#9058) (9439107)
  • Add role subscription data (#9025) (1ba22f4)
  • Sticker: Add support for gif stickers (#9038) (6a9875d)
  • GuildAuditLogs: Support after (#9011) (0076589)
  • Add role subscriptions (#8915) (3407e1e)
  • Add not_found to guild member chunk data (#8975) (be294ea)
  • ClientApplication: Add role connections (#8855) (22e2bbb)
  • CommandInteractionOptionResolver: Add channelTypes option to getChannel (#8934) (429dbcc)
  • ForumChannel: Add defaultForumLayout (#8895) (cbafd47)
  • Add support for nsfw commands (#7976) (7a51344)
  • InteractionResponse: CreatedTimestamp (#8917) (627511d)
  • Guild: Add disableInvites method (#8801) (45faa19)

Refactor

  • Compare with undefined directly (#9191) (869153c)
  • GuildMemberManager: Tidy up fetching guild members (#8972) (4e0e125)
  • BitField: Reverse iterator/toArray responsibilities (#9118) (f70df91)
  • Moved the escapeX functions from discord.js to @discord.js/formatters (#8957) (13ce78a)
  • Use deprecate() directly (#9026) (1c871b5)
  • Guild: Destructure object in guild editing (#8971) (d3e9f2a)
  • GuildManager: Better handling of creation code (#8974) (d7a09f6)
  • sharding: Use switch statement (#8928) (6540914)
  • Use consistent naming for options (#8901) (a7b55c1)
  • CommandInteractionOptionResolver: Loosen mentionable checks (#8910) (1b151db)

Styling

Typings

  • Allow sending messages with SuppressNotifications flag (#9177) (71a427f)
  • Remove EscapeMarkdownOptions (#9153) (fd0246c)
  • Attachment: Make attachment private (#8982) (da23cd5)
  • Fix type of Attachment#name (#9101) (4e0a89f)
  • Allow builders to set channel types in discord.js (#8990) (7dec892)
  • Swap message reaction and emoji identifier types (#8969) (ad49845)
  • widget: Add missing name (#8978) (898b5ac)
  • Use StringSelectMenuOptionBuilder (#8949) (bec51de)
  • Fix actions type in automod (#8962) (5915f39)
  • Subcommand group options is required (#8966) (5dc5e90)
  • Add generic to ActionRowBuilder.from() (#8414) (153352a)

14.7.1 - (2022-12-01)

Bug Fixes

  • Prevent crash on no select menu option (#8881) (11d195d)

14.7.0 - (2022-11-28)

Bug Fixes

  • MessageMentions: Add InGuild generic (#8828) (f982803)
  • Activity: Fix equals() not checking for differing emoji (#8841) (7e06f68)
  • Fixed react/astro/guide/discord.js build, updated dependencies, fix crawlvatar (#8861) (d0c8256)
  • escapeMarkdown: Fix double escaping (#8798) (d6873b7)
  • Transfomers: Call .toJSON in toSnakeCase (#8790) (017f9b1)
  • Censor token in debug output (#8764) (53d8e87)
  • Pin @types/node version (9d8179c)

Documentation

  • Describe InteractionEditReplyOptions (#8840) (cb77fd0)
  • AutoModerationRuleManager: Describe cache (#8848) (d275480)
  • Fix message action row components (#8819) (65bc0ad)
  • Specify ActionRowBuilder for components (#8834) (8ed5c1b)
  • Add @extends for select menu classes (#8824) (09f65b7)
  • Make WebSocketShard.lastPingTimestamp public (#8768) (68c9cb3)
  • MessageReplyOptions: Remove duplicate stickers field (#8766) (6e348ff)

Features

  • Webhook: Add channel property (#8812) (decbce4)
  • Auto Moderation (#7938) (fd4ba5e)
  • SelectMenuInteractions: Add values property (#8805) (b2fabd1)
  • ThreadChannel: Add a helper for pin and unpin (#8786) (e74aa7f)
  • Add Message#bulkDeletable (#8760) (ff85481)
  • New select menus (#8793) (5152abf)
  • InteractionResponses: Add message parameter (#8773) (8b400ca)
  • Support resume urls (#8784) (88cd9d9)
  • Allow deletion of ephemeral messages (#8774) (fc10774)
  • GuildChannelManager: Add .addFollower() method (#8567) (caeb1cb)

Refactor

  • Embed: Use embedLength function from builders (#8735) (cb3826c)

14.6.0 - (2022-10-10)

Bug Fixes

  • ClientOptions: Make ClientOptions#intents returns an IntentsBitField (#8617) (4c2955a)
  • Correctly construct a builder (#8727) (e548e6a)
  • Components: Error with unknown components (#8724) (6fd331d)
  • Client: Don't auth for webhook fetches with token (#8709) (01d75c8)
  • Re-export util (#8699) (a306219)
  • Throw discord.js errors correctly (#8697) (ace974f)

Documentation

  • Utils: Remove private from parseEmoji (#8718) (a31e605)
  • Update UserContextMenuCommandInteraction documentation (#8717) (7556db2)
  • Fix AwaitMessageComponentOptions typedef (#8696) (9effd82)

Features

  • Util: Escape more markdown characters (#8701) (7b8966b)
  • GuildChannelManager: Allow creating channels with a default auto archive duration (#8693) (628759b)
  • Add @discordjs/util (#8591) (b2ec865)
  • ForumChannel: Add defaultSortOrder (#8633) (883f6e9)

Refactor

  • Rename Error to DiscordjsError internally (#8706) (aec44a0)

Typings

  • Fix events augmentation (#8681) (ac83ada)
  • Message: Remove & this from #inGuild typeguard (#8704) (c0f7a1a)
  • ModalBuilder: Fix constructor typings (#8690) (2ea2a85)

14.5.0 - (2022-09-25)

Bug Fixes

  • ThreadChannel: Add forum channel to parent (#8664) (0126d9b)
  • GuildChannelManager: Allow creating webhooks on forums (#8661) (16fcdc3)
  • ForumChannel: Implement missing properties and methods (#8662) (8622939)
  • RepliableInteraction respect cached generic (#8667) (578bc95)
  • ThreadChannel: Allow editing flags (#8671) (1244854)
  • GuildChannelManager: Typo in flags property name when editing (#8669) (fc8ed81)

Documentation

  • Fix duplicate typedefs (#8677) (d79aa2d)
  • ForumChannel: Add @implements (#8678) (8ca407e)

Features

  • GuildChannelManager: Allow editing flags (#8637) (abb7226)

Refactor

  • GuildBanManager: Add deprecation warning for deleteMessageDays (#8659) (e993122)

Typings

  • GuildChannelManager: Handle forum channel overload (#8660) (1486bc9)
  • Caches: Allow GuildForumThreadManager and GuildTextThreadManager (#8665) (2487e3b)

14.4.0 - (2022-09-21)

Bug Fixes

  • Correct applied tags type (#8641) (f6f15d8)
  • ThreadChannel: Make fetchStarterMessage() work in forum posts (#8638) (a7f816e)
  • Update messageCount/totalMessageSent on message events (#8635) (145eb2f)
  • Footer / sidebar / deprecation alert (ba3e0ed)

Documentation

  • Correctly overwrite setRTCRegion method (#8642) (f049734)
  • GuildTextThreadManager: Document correct @extend (#8639) (802b239)
  • Fix regexps incorrectly being called global (#8624) (fc9653f)
  • Update misleading Client#guildMemberAvailable event description (#8626) (22ac6b4)
  • Options: Update DefaultMakeCacheSettings (#8585) (3252332)
  • Change name (#8604) (dd5a089)

Features

  • Widget: Allow forum channels (#8645) (b106956)
  • WelcomeChannel: Add forum channel as a type (#8643) (6f1f465)
  • Allow forum channels in webhook update event (#8646) (5048a3d)
  • Add support for guild forums (#7791) (8a8d519)
  • GuildBanManager#create: Add deleteMessageSeconds (#8326) (03fb5b0)
  • Add typeguard to BaseInteraction#isRepliable (#8565) (55c3ee2)
  • Integration: Add scopes (#8483) (8b3d006)
  • Add chatInputApplicationCommandMention formatter (#8546) (d08a57c)

Refactor

  • Replace usage of deprecated ChannelTypes (#8625) (669c3cd)
  • Split message send/edit types/documentation (#8590) (8e1afae)
  • Website components (#8600) (c334157)

Typings

  • Narrow channel type in thread managers (#8640) (14bbc91)
  • interactions: Pass Cached type to return type of methods (#8619) (053da5b)
  • Ensure events possess Client<true> (#8612) (a9f003a)
  • GuildChannelManager: Correct fetch return type (#8549) (1d4cdee)
  • ThreadChannel: fetchStarterMessage must return a Message<true> (#8560) (b9c62ac)
  • webhook: Avatar can be null (#8541) (f77612a)

14.3.0 - (2022-08-22)

Bug Fixes

  • GuildMemberManager: add() method throws an error (#8539) (3bef901)
  • Guild: Widget channel types and fixes (#8530) (23a0b6c)
  • Embed: Reference video in video (#8473) (c97977a)

Documentation

  • GuildAuditLogsEntry: Correct action wording (#8499) (7d25072)

Features

  • GuildMemberManager: AddRole and removeRole (#8510) (cda3f00)
  • Deprecate ActionRow.from() (#8504) (f9c25dd)
  • WebSocketShard: Support new resume url (#8480) (bc06cc6)

Refactor

  • GuildAuditLogsEntry: Remove guild from application command permission update extra (#8520) (2b8074d)

Typings

  • Inference of guild in MessageManager (#8538) (6bb1474)
  • Allow choice's value type to be strictly inferred (#8529) (b3f7c32)
  • GuildAuditLogs: Allow fetching to return all possible values (#8522) (0dba8ad)
  • Correct EventEmitter.on (static) return type (#8524) (16bbc8a)
  • GuildAuditLogs: Remove static Entry (#8521) (7a3d18d)
  • Disallow some channel types from webhook creation (#8531) (4882b17)
  • Implement max/min values for autocomplete (#8498) (812f7f1)
  • ModalMessageModalSubmitInteraction: ChannelId is not nullable (#8496) (c31a5cf)
  • Change type of ApplicationCommandSubCommand.options (#8476) (ebaf158)

14.2.0 - (2022-08-10)

Bug Fixes

  • ThreadChannel: Handle possibly null parent (#8466) (afa27b1)
  • Remove DM channels from Client#messageDeleteBulk's types (#8460) (6c6fe74)
  • Transformers: Do not transform Date objects (#8463) (0e2a095)
  • ModalSubmitInteraction: Allow deferUpdate (#8455) (0fab869)
  • Guild: Unable to fetch templates (#8420) (aac8acc)
  • MessageMentions: Infinite loop in parsedUsers getter (#8430) (b8a3136)
  • DataResolver: Make Buffer from string (#8416) (e72b986)

Documentation

  • Change registration example to use global commands (#8454) (64a4041)
  • Colors: Provide enum descriptions (#8437) (6ef4754)
  • AttachmentBuilder: Fix #8407 (#8421) (5b053cf)

Features

  • Guild: Add max_video_channel_users (#8423) (3a96ce7)

Typings

  • Message: Correct bulkDelete return type (#8465) (c5b96a1)
  • Fix missing types for mentionable options (#8443) (452e94f)
  • ApplicationCommandOption: Add ApplicationCommandBooleanOption (#8434) (38275fc)

14.1.2 - (2022-07-30)

Bug Fixes

  • errors: Error codes (#8398) (480c85c)

Documentation

  • Embed: Ensure height and width are numbers (#8396) (fca3dad)

14.1.0 - (2022-07-29)

Bug Fixes

  • MessageMentions: ignoreRepliedUser option in has() (#8202) (b4e2c0c)
  • GuildChannelManager: Allow unsetting rtcRegion (#8359) (a7d49e5)
  • ThreadChannel: Omit webhook fetching (#8351) (3839958)
  • GuildAuditLogsEntry: Replace OverwriteType with AuditLogOptionsType (#8345) (58c1b51)
  • ShardClientUtil#_respond: Construct global error (#8348) (8e520f9)
  • Presence: Do not return NaN for activity timestamp (#8340) (df42fdf)
  • Client: Omit private properties from toJSON (#8337) (830c670)
  • ApplicationCommandManager: Allow passing 0n to defaultMemberPermissions (#8311) (1fb7b30)

Documentation

  • InteractionResponses: Add showModal() return type (#8376) (0b61dbf)
  • WebhookClient: Document working options (#8375) (ba6797e)
  • Message: Document gateway intent for content (#8364) (2130aae)
  • Use info blocks for requirements (#8361) (80b9738)
  • WebhookClient: Make constructor a union (#8370) (e9920a9)
  • Update docs and examples to PascalCase links (#8305) (34ba9d1)

Features

  • Add channel & message URL formatters (#8371) (a7deb8f)
  • Restore missing typeguards (#8328) (77ed407)
  • GuildMember: Add dmChannel getter (#8281) (4fc2c60)

Refactor

  • Deprecate Formatter class (#8373) (7fd9ed8)
  • PermissionOverwriteManager: Use OverwriteType (#8374) (6d24805)

Typings

  • GuildAuditLogsEntryExtraField: Use AuditLogOptionsType (#8349) (200ab91)

14.0.3 - (2022-07-19)

Bug Fixes

  • Components: Support emoji id strings (#8310) (660e212)

14.0.2 - (2022-07-18)

Bug Fixes

  • DataResolver#resolveImage: Adjust to updated resolveFile (#8308) (3a7e93d)

14.0.0 - (2022-07-17)

Bug Fixes

  • GuildMemberManager: Allow setting own nickname (#8066) (52a9e21)
  • PermissionOverwriteManager: Mutates user (#8283) (3bf30b1)
  • GuildChannelManager: Access resolveId correctly (#8296) (3648f6d)
  • GuildChannelManager: Edit lockPermissions (#8269) (7876548)
  • SelectMenuBuilder: Properly accept SelectMenuOptionBuilders (#8174) (31d5930)
  • Remove global flag on regular expressions (#8177) (cdd9214)
  • MessagePayload: Guard against repliedUser property (#8211) (fa010b5)
  • ApplicationCommandManager: Explicitly allow passing builders to methods (#8209) (50d55bd)
  • GuildMemberRemove: Remove member's presence (#8181) (11b1739)
  • Edit() data can be partial and defaultMemberPermissions can be null (#8163) (0ffbef5)
  • WebSocketShard: Keep an error handler on connections (#8150) (c34c02a)
  • DJSError: Error code validation (#8149) (31f6582)
  • vcs: Nsfw property (#8132) (2eeaad6)
  • WebSocketManager: Correct error name (#8138) (db2b033)
  • WebSocketShard: Disconnected casing (#8117) (23e183a)
  • webhooks: Revert webhook caching (and returning Message) (#8038) (d54bf5d)
  • ApplicationCommand: Remove autocomplete check at the top level and correctly check for dmPermission (#8100) (0a44b05)
  • ApplicationCommand: Fix default member permissions assignment (#8067) (96053ba)
  • scripts: Read directory and rerun (#8065) (f527dea)
  • Select menu options to accept both rest and array (#8032) (fbe67e1)
  • CommandInteractionOptionResolver: Handle autocompletion interactions (#8058) (d8077c6)
  • scripts: Add quotes around blob arguments (#8054) (598f61b)
  • Message: Force fetching (#8047) (f2b267c)
  • Attachment: Do not destructure data (#8041) (1afae90)
  • DirectoryChannel: Type name and handle url (#8023) (86d8fbc)
  • Readd isThread type guard (#8019) (f8ed71b)
  • Add static method from in builders (#7990) (ad36c0b)
  • Typings (#7965) (7a1095b)
  • GuildAuditLogs: Cache guild scheduled events (#7951) (2f03f9a)
  • Make sure action row builders create djs builders (#7945) (adf461b)
  • TextBasedChannel#bulkDelete: Return deleted message (#7943) (191510b)
  • Remove trailing invites on channel deletion (#7932) (5e9b757)
  • DataResolver: Fix check for readable streams (#7928) (28172ca)
  • AuditLog: Default changes to empty array (#7880) (19eaed6)
  • Util: Flatten ignoring certain fields (#7773) (df64d3e)
  • Possibly missing (#7829) (6239d83)
  • endReason not being properly set in base Collector (#7833) (0c18dab)
  • SelectMenuBuilder: Options array (#7826) (3617093)
  • Activity: Platform type (#7805) (4ac91c6)
  • ApplicationCommand: Equal nameLocalizations and descriptionLocalizations (#7802) (4972bd8)
  • InteractionResponses: Use optional chaining on nullable property (#7812) (c5fb548)
  • MessageManager: Allow caching option of an unspecified limit (#7763) (1b2d8de)
  • builders: Add constructor default param (#7788) (c286650)
  • MessagePayload: ResolveBody check body instead of data (#7738) (3db20ab)
  • ActionRow: ToJSON should include components (#7739) (ebb4dfa)
  • Prevent NaN for nullable timestamps (#7750) (8625d81)
  • InteractionCreateAction: Ensure text-based channel for caching messages (#7755) (25fdb38)
  • Pass force correctly (#7721) (402514f)
  • Support reason in setRTCRegion helpers (#7723) (905a6a1)
  • GuildMemberManager: Return type can be null (#7680) (74bf7d5)
  • gateway: Use version 10 (#7689) (8880de0)
  • Audit log static reference (#7703) (85e531f)
  • Handle possibly missing property (#7641) (0c32332)
  • util: Allow escapeInlineCode to escape double backtics (#7638) (d5369a5)
  • GuildEditData: Some fields can be null (#7632) (4d2b559)
  • TOKEN_INVALID error not thrown at login with invalid token (#7630) (cd79bef)
  • GuildScheduledEvent: Handle missing image (#7625) (c684ac5)
  • guild: Throw if ownerId falsey (#7575) (98177aa)
  • Remove Modal export (#7654) (87a6b84)
  • Embed: Fix incorrect destructuring import (#7615) (cbdb408)
  • ThreadMembersUpdate: Only emit added & removed thread members (#7539) (c12d61a)
  • Util: EscapeInlineCode properly (#7587) (851f380)
  • GuildStickerManager: Correctly access guild ID (#7605) (4b08d9b)
  • MessageManager: Pin route (#7610) (cb566c8)
  • Handle partial data for Typing#user (#7542) (c6cb5e9)
  • guild: Fix typo accessing user instead of users (#7537) (8203c5d)
  • test: MessageActionRow to ActionRow (#7523) (d1d1b07)
  • MessagePayload: Don't set reply flags to target flags (#7514) (4f30652)
  • invite: Add back channelId property (#7501) (78aa36f)
  • Properly serialize undefined values (#7497) (8dbd345)
  • Allow unsafe embeds to be serialized (#7494) (942ea1a)
  • Attachment types (#7478) (395a68f)
  • Use case converter for json component serialization (#7464) (2d45544)
  • GuildAuditLogs: Typings and consistency (#7445) (c1b27f8)
  • dataresolver: Ensure fetched file is convert to a buffer (#7457) (9311fa7)
  • messagepayload: ResolveFile property names (#7458) (a8106f7)
  • ci: Ci error (#7454) (0af9bc8)
  • threads: Require being sendable to be unarchivable (#7406) (861f0e2)
  • guildmember: Check if member has administrator permission (#7384) (81d8b54)
  • guild: Remove maximumPresences default value (#7440) (55b388a)
  • guildchannelmanager: Edit always sets parent to null (#7446) (b97aedd)
  • guildmember: Make pending nullable (#7401) (fe11ff5)
  • clientpresence: Fix used opcodes (#7415) (a921ec7)
  • Correctly export UnsafeSelectMenuComponent from builders (#7421) (aadfbda)
  • MessageReaction.me being false when it shouldn't (#7378) (04502ce)
  • Fix some typos (#7393) (92a04f4)
  • messagementions: Fix has method (#7292) (3a5ab2c)
  • guildmembermanager: Use rest in edit (#7356) (00ce1c5)
  • typings: Mark RESTOptions as Partial in ClientOptions (#7349) (e1ecc1a)
  • Webhook: Use correct method name (#7348) (11e5e5a)
  • thread: Don't assign directly to getters (#7346) (2db0cdd)
  • Missed enums and typings from #7290 (#7331) (47633f0)
  • guildchannelmanager: Remove reverse enum lookup (#7304) (857bba4)
  • Import clear{Timeout,Interval} from node:timers (#7269) (8ddd44e)
  • ApplicationCommand: Use new ApplicationCommandOptionType enums (#7257) (06f5210)
  • Use enums from discord-api-types (#7258) (f284a46)
  • exports: Export ApplicationCommandType properly (#7256) (f753882)
  • Shard: EventEmitter listener warning (#7240) (ff3a8b8)
  • timestamps: Account for timestamps of 0 when creating Dates (#7226) (a8509c9)
  • MessageEmbed: CreatedAt field can be zero (#7218) (37cad54)
  • BaseClient: Do not append default options if provided is not an object (#6453) (b92a7d7)
  • Snowflakeutil import (#7219) (962f4bf)
  • Role: Remove unused process (#7215) (63034b4)
  • WebhookClient: Updated webhook url regex (#6804) (1c615d1)
  • Sweepers: Add sweepStickers function (#7213) (95f8375)
  • InteractionCreate: Use ChatInputCommandInteraction instead (#7210) (49dada3)
  • Structues: Rename old module's name (#7207) (fbef454)
  • WebSocket: Remove application command handler (#7202) (033151c)
  • User: bannerURL() should not throw when not present (#6789) (3872acf)
  • VoiceState: Ensure suppress & streaming have proper fallback values (#6377) (a0d5f13)
  • sweepers: Provide default for object param (#7182) (ae2f013)

Deprecation

  • Caching: Clean up deprecated cache sweeping (#7118) (12ffa06)

Documentation

  • Align webhook method return types with implementation (#8253) (5aeed99)
  • Remove @private constructor documentation (#8255) (452dec5)
  • ApplicationCommand: Add min_length and max_length to ApplicationCommandOptionData (#8239) (43f62bb)
  • MessageInteraction#commandName: Updated description (#8212) (ab238a9)
  • Add missing @extends (#8205) (e0c8282)
  • Constants: Fix SweeperKeys type (#8157) (af04992)
  • Channels: Internally document channel creation (#8154) (5e5853a)
  • Update threads to use ThreadAutoArchiveDuration (#8153) (ee36d60)
  • APITypes: Remove duplicate type definition (#8144) (a061233)
  • Document missing type definitions (#8130) (203bc4a)
  • InteractionResponse: Fix return (#8141) (f1ac17c)
  • PermissionsBitField: Fix @name of bitfield (#8115) (3a77ce0)
  • TextBasedChannel -> TextBasedChannels typos (#8110) (db663a5)
  • Remove numbers from enums (#8098) (0a138da)
  • GuildAuditLogs: Fix and reimplement type definitions (#8108) (4155136)
  • WebSocketOptions: Add version to docs and typings (#8050) (386c41f)
  • BaseGuildTextChannel: Update setType()'s parameter type (#8088) (9c0f190)
  • Update outdated examples (#8081) (51eadf3)
  • ThreadMemberManager: Require member in FetchThreadMemberOptions (#8079) (552ec72)
  • AutocompleteInteraction: Change useless log in responds example (#8077) (ac7bf69)
  • Description and missing @typedef fixes (#8087) (a2eebf6)
  • Ignore docs of unexported functions (#8051) (94bdcac)
  • ClientOptions: Fix closeTimeout default (#8049) (b2eea1c)
  • DirectoryChannel: Extend Channel (#8022) (f3f34f0)
  • Attachment: Remove constructor doc (#8009) (0a7953e)
  • VoiceChannel: Annotate that it is implementing TextBasedChannel (#8007) (5987dbe)
  • Add missing discord-api-types external types (#8001) (546d486)
  • InteractionResponses: Replace outdated Embed example for reply (#7875) (d308c66)
  • Require parameter (#7838) (f4ccc67)
  • ApplicationCommand: Fix and improve localization docs (#7804) (61a44c5)
  • ApplicationCommand: Fix ApplicationCommandOptionChoice (#7794) (f1d0084)
  • Add back static properties and methods (#7706) (520f471)
  • InteractionCollector: Document channel option type (#7551) (e787cd5)
  • Correctly type getters (#7500) (ffecf08)
  • ApplicationCommandData typedef (#7389) (d32db88)
  • channel: Fix isDMBased docs (#7411) (f2a7a9f)
  • messageattachment: Fix contentType docs (#7413) (2800e07)
  • Add supported option types for autocomplete (#7368) (8bb3751)
  • Add external builder docs links (#7390) (0b866c9)
  • Add EnumResolvers (#7353) (72767a1)
  • locales: Update Discord API docs link (#7266) (b640272)
  • StageInstance: Deprecate discoverableDisabled (#7179) (bd33ebb)
  • shardingmanager: Fix type of execArgv option (#7284) (e65da44)
  • interaction: Add locale list link (#7261) (37ec0bd)
  • Fix a typo and use milliseconds instead of ms (#7251) (0dd56af)
  • Fix command interaction docs (#7212) (137ea24)
  • TextBasedChannel: Fixed syntax error in examples (#7163) (b454740)
  • TextBasedChannel: Fix #createMessageComponentCollector description (#7168) (d4e6e03)
  • Fixes the examples for kick and ban (#7170) (db669b8)
  • RoleManager: Fix incorrect example (#7174) (f79ea67)

Features

  • builder: Add max min length in string option (#8214) (96c8d21)
  • applicationCommand: Add max min length in string option (#8215) (94ee60d)
  • Add website documentation early mvp (#8183) (d95197c)
  • BaseInteraction: Add support for app_permissions (#8194) (002d6a5)
  • util: ParseWebhookURL (#8166) (c4653f9)
  • AutocompleteInteraction: Add commandGuildId (#8086) (10a6c42)
  • guild: Add support for setting MFA level (#8024) (c5176be)
  • vcs: Add missing property and methods (#8002) (0415300)
  • docgen: Update typedoc (b3346f4)
  • Website (#8043) (127931d)
  • Docgen package (#8029) (8b979c0)
  • Backport handle zombie connection (#7626) (e1176fa)
  • CommandInteraction: Add 'commandGuildId' (#8018) (aa59a40)
  • Allow builders to accept rest params and arrays (#7874) (ad75be9)
  • MessageReaction: Add react method (#7810) (a328778)
  • Collector: Add ignore event (#7644) (5244fe3)
  • GuildMemberManager: Add GuildMemberManager#fetchMe() (#7526) (349766d)
  • guildChannelManager: Add videoQualityMode option for create() (#7980) (cdd2ba0)
  • EnumResolvers: Remove Enumresolvers (#7876) (76694c1)
  • Move me to GuildMemberManager manager (#7669) (aed687b)
  • rest: Use undici (#7747) (d1ec8c3)
  • VoiceChannel: Add support for text in voice (#6921) (4ba0f56)
  • SelectMenu: Allow emojis in options and option constructors (#7797) (f22245e)
  • Allow createMessageComponentCollector without using fetchReply (#7623) (a58556a)
  • Add guild directory support (#6788) (b01f414)
  • GuildBanManager: Support pagination results (#7734) (fc2a8bb)
  • CommandInteraction: Add support for localized slash commands (#7684) (01a423d)
  • Allow emoji strings to be passed through constructors (#7718) (0faac04)
  • StageInstanceManager: Add sendStartNotification option to create (#7730) (29f8807)
  • Add makeURLSearchParams utility function (#7744) (8eaec11)
  • modal: Add awaitModalSubmit (#7751) (3037fca)
  • Actions: Add parent structure to events parameters (#7577) (3f3e432)
  • Export UnsafeModalBuilder and UnsafeTextInputBuilder (#7628) (6fec252)
  • VoiceChannel: Support video_quality_mode (#7722) (3b3dabf)
  • Add API v10 support (#7477) (72577c4)
  • embed: Remove Embed.setColor (#7662) (9b0d8cb)
  • StageInstance: Add support for associated guild event (#7576) (3dff31f)
  • VoiceState: Add edit method (#7569) (b162f27)
  • ModalSubmitInteraction: Add boolean properties (#7596) (8907390)
  • Add Modals and Text Inputs (#7023) (ed92015)
  • discord.js: Partial transition to undici (#7482) (5158332)
  • message: Add reason on pin and unpin (#7520) (00728f7)
  • Re-export AuditLogEvent enum (#7528) (6a2fa70)
  • options: Add support for custom JSON transformers (#7476) (dee27db)
  • Add CategoryChannelChildManager (#7320) (5cf5071)
  • Attachment application command option type (#7200) (0034396)
  • builders: Add attachment command option type (#7203) (ae0f35f)
  • scheduledevents: Add image option (#7436) (fbc71ef)
  • Add methods to managers (#7300) (dd751ae)
  • channel: Add .url getter (#7402) (f59d630)
  • components: Add unsafe message component builders (#7387) (6b6222b)
  • thread: Add newlyCreated to threadCreate event (#7386) (51beda5)
  • channel: Add isDMBased typeguard (#7362) (388f535)
  • Interaction: Add .commandType property to CommandInteraction and AutocompleteInteraction (#7357) (567db60)
  • scheduledevent: Add support for event cover images (#7337) (355f579)
  • enumResolvers: Strengthen typings (#7344) (9a566e8)
  • Allow setting message flags when sending (#7312) (706db92)
  • minor: Add application_id to Webhook (#7317) (5ccdb0a)
  • threadchannel: Add createdTimestamp field (#7306) (9a16234)
  • GuildPreview: Add stickers (#7152) (cf25de9)
  • Enum resolvers & internal enum string removal (#7290) (213acd7)
  • guildemojimanager: Add delete and edit methods (#7286) (9181a31)
  • interaction: Add isRepliable type guard (#7259) (da05a88)
  • Channel: Improve typeguards (#6957) (37a22e0)
  • Add Locales to Interactions (#7131) (9052e32)
  • Permissions: Remove deprecated thread-related permissions (#6755) (ab3ff5a)
  • VoiceRegion: Remove the unsent vip field (#6759) (caaef53)
  • richpresenceassets: Add YouTube and custom image support (#7184) (d06d70c)
  • Collector: Yield all collected values (#7073) (2b480cb)

Refactor

  • Util: Rename fetchRecommendedShards (#8298) (cafde77)
  • Embed: Add all the types (#8254) (64f8140)
  • rest: Add content-type(s) to uploads (#8290) (103a358)
  • Make GuildAuditLogsEntry.action return an AuditLogEvent (#8256) (f0b68d5)
  • builder: Remove unsafe*Builders (#8074) (a4d1862)
  • Make ShardEvents the events of Shard (#8185) (c5750d5)
  • Util: Make single replace call in cleanContent (#8210) (6b20645)
  • ApplicationCommandManager: Use makeURLSearchParams (#8196) (cb3dca4)
  • Use Base prefix for channel and interaction base classes (#8099) (e24970e)
  • Constants: Remove leftover code (#8156) (cd17aad)
  • Errors (#8068) (e68effa)
  • ClientOptions: Remove $ prefix from ws.properties keys (#8094) (90a98fe)
  • Use GuildFeature enum (#8101) (e5ec1c4)
  • util: Make utility functions top level (#8052) (e53d162)
  • ApplicationCommand: Permissions v2 (#7857) (c7391db)
  • *: Include name/reason/etc fields into options/data params (#8026) (9c8b310)
  • ThreadMemberManager: Consistent thread member fetching (#8021) (da9107c)
  • interactions: Remove redundant interaction typeguards (#8027) (f57d676)
  • Move all the config files to root (#8033) (769ea0b)
  • channel: Remove redundant channel type guards (#8012) (70c733b)
  • Always return Message instances in interactions (#7917) (9720e55)
  • attachment: Don't return attachment builders from API (#7852) (dfadcbc)
  • Clean up modal submissions (#7994) (643dab3)
  • ThreadChannel: Remove MAX helper from threads (#7846) (dfd9eb2)
  • Activity: Remove undocumented properties (#7844) (5ba7740)
  • MessageAttachment: Use Attachment instead (#7691) (ab4c608)
  • Util: Remove splitting (#7780) (54e5629)
  • Tidy up builders and components (#7711) (96a0d83)
  • Remove nickname parsing (#7736) (78a3afc)
  • Remove store channels (#7634) (aedddb8)
  • IntegrationApplication: Remove summary (#7729) (eb6b472)
  • GuildAuditLogs: Remove build (#7704) (cedd053)
  • InteractionCollector: Simplify constructor logic (#7667) (07b23a9)
  • Remove undocumented checks (#7637) (9a6e691)
  • Allow builders to accept emoji strings (#7616) (fb9a9c2)
  • Use static fields (#7701) (e805777)
  • EmbedBuilder: Allow hex strings in setColor (#7673) (f472975)
  • Don't return builders from API data (#7584) (549716e)
  • embed: Allow hex strings in setColor() (#7593) (79d6c04)
  • InteractionResponses: Use ClientOptions.jsonTransformer (#7599) (fac55bc)
  • Deprecate invite stage instance (#7437) (d2bc9d4)
  • guild: Move premiumSubscriptionCount to AnonymousGuild (#7451) (6d3da22)
  • actions: Use optional chaining (#7460) (d1bb362)
  • guildbanmanager: Rename days option to deleteMessageDays (#7447) (0dfdb2c)
  • Make public builder props getters (#7422) (e8252ed)
  • Remove redundant API defaults (#7449) (532846b)
  • Allow discord.js builders to accept camelCase (#7424) (94bf727)
  • Replace WSCodes, WSEvents, and InviteScopes with discord-api-types equivalent (#7409) (cc25455)
  • Make constants enums top level and PascalCase (#7379) (d8184f9)
  • Bitfield: Use discord-api-types enums instead (#7313) (fbb1d03)
  • Use @discordjs/rest (#7298) (ec0fba1)
  • Switch to /builders Embed (#7067) (d2d3a80)
  • Remove transformPermissions (#7303) (b4ed8fd)
  • Remove VoiceChannel#editable (#7291) (164589c)
  • Remove boolean option for Webhook#fetchMessage (#7293) (347ff80)
  • subcommandgroup: Required default to false (#7217) (6112767)
  • invite: Make channel and inviter getters (#7278) (18b0ed4)
  • Remove required from getMember (#7188) (c90e47f)
  • Remove djs components and use /builders components instead (#7252) (101d7c5)
  • Default *URL methods to animated hash (#7149) (7c07976)
  • Use setPosition inside edit (#7263) (0b23b7f)
  • Don't disable import order lint (#7262) (0a5d5f3)
  • Remove discord.js enums and use discord-api-types enums instead (#7077) (aa6d1c7)
  • application: Remove fetchAssets (#7250) (1479e40)
  • PresenceUpdate and demuxProbe (#7248) (1745973)
  • embeds: Don't create new embed instances when unnecessary (#7227) (822dc67)
  • GuildMember: Throw better errors on #kickable and #bannable (#7137) (4fd127e)
  • SnowflakeUtil: Switch to @sapphire/snowflake (#7079) (e082dfb)
  • InteractionCreate: Remove interaction event (#6326) (ae876d9)
  • MessageCreate: Remove message event (#6324) (171e917)
  • integration: Turn undefined into null and consistency (#7209) (13eb782)
  • Remove deleted field (#7092) (cee7fd1)
  • Dates: Save timestamps everywhere and use Date.parse (#7108) (55e21f5)
  • RoleManager: Remove comparePositions() (#7201) (fbbac27)
  • Better Command Terminology (#7197) (b7856e7)
  • Actions: Remove deleted maps (#7076) (5022b14)
  • Client: Remove applicationCommand events (#6492) (6085b4f)
  • Remove Util.removeMentions() (#6530) (0c24cc8)
  • Constants: Change APPLICATION_COMMAND -> CHAT_INPUT_COMMAND (#7018) (75616a3)
  • Guild: Remove deprecated setXPositions methods (#6897) (43e5e3c)
  • UserFlags: Update flag names (#6938) (b246fc4)

Styling

  • Cleanup tests and tsup configs (6b8ef20)

Typings

  • GuildFeature: Allow feature strings to be passed (#8264) (b7d4e55)
  • CategoryChannelChildManager: Fix Holds type (#8288) (33a7a5c)
  • Remove MemberMention (#8292) (bf65b37)
  • GuildMemberManager: Fix placement for fetchMe() (#8258) (7525615)
  • Convert Events to an enum (#8246) (feb3bdd)
  • GuildMemberManager: Non-void return of edit() (#8186) (c7a205f)
  • Add missing shard types (#8180) (27d8deb)
  • Implement GuildChannelEditOptions (#8184) (b83e0c0)
  • Status: Add missing members (#8179) (8421f92)
  • GuildScheduledEvent#scheduledStartAt: Should be nullish (#8111) (65dc8d6)
  • Fix modal builder constructor data type (#8143) (7279f9c)
  • Use ThreadAutoArchiveDuration from discord-api-types (#8145) (a3799f9)
  • Shard#reconnecting: Fix event name (#8118) (95e6d6e)
  • ApplicationCommand: Fix typo in setDMPermission (#8097) (4df491c)
  • Fix setType() parameter and ChannelData.type (#8089) (b4e28a8)
  • Fix ApplicationCommandPermissionsUpdate event typings (#8071) (9964454)
  • AutocompleteOption: Fix and improve types (#8069) (476b7d5)
  • ThreadMemberManager: Fix return type of fetching members with no arguments (#8060) (2392a6f)
  • Remove isAutocomplete typeguard from typings (#8063) (c0f079d)
  • AttachmentBuilder: Fix data type (#8016) (7fa698d)
  • modal: Fix showModal() typings (#8014) (0ccc243)
  • Fix some attachment related typings (#8013) (6aa6232)
  • AttachmentBuilder: Remove name parameter from constructor (#8008) (6266b0c)
  • Add types to EventEmitter static methods (#7986) (d60c464)
  • Nullify guildScheduledEventUpdate's old parameter (#7955) (fdeac9d)
  • Make CacheType generic more accurate for return values (#7868) (e07b910)
  • guildScheduledEvent: Mark entityMetadata as nullable (#7908) (64bdf53)
  • discord.js: Export missing enums (#7864) (5eeef3f)
  • Fix return type of toString() on channels (#7836) (ece6289)
  • Message#activity: Make partyId optional and use enum for type (#7845) (bfeaf85)
  • Cleanup *Data type definitions (#7716) (585169f)
  • Fix BooleanCache never resolving to true (#7809) (440ac24)
  • CommandInteraction: Add awaitModalSubmit (#7811) (a6d9ce5)
  • ThreadChannel: Fix autoArchiveDuration types (#7816) (0857476)
  • Add missing typing (#7781) (f094e33)
  • VoiceChannel: Nullify property (#7793) (446eb39)
  • ModalSubmitInteraction: Message (#7705) (b577bcc)
  • Embed: Add missing getters and add video to EmbedData (#7728) (fd1dc72)
  • ModalSubmitInteraction: Fix components type (#7732) (6f4e97b)
  • interactionCollector: Filter should have a collected argument (#7753) (e4f2705)
  • Fix regressions (#7649) (5748dbe)
  • Constants: Add NonSystemMessageTypes (#7678) (9afc030)
  • Fix auto archive duration type (#7688) (8e3b2d7)
  • InteractionResponseFields: Add webhook (#7597) (daf2829)
  • Embed: Add forgotten footer type (#7665) (8fb9816)
  • ColorResolvable: Simplify string types (#7643) (2297c2b)
  • Allow component classes in action row data (#7614) (230c0c4)
  • ActionRow: Allow components to be passed to constructors (#7531) (e71c76c)
  • showModal: Align types with the documentation (#7600) (0d7e4ed)
  • Modals type and doc fixes (#7608) (93854a8)
  • InteractionResponseFields: Add boolean properties (#7565) (53defb8)
  • Allow raw components for reply and message options (#7573) (2d4971b)
  • Fix component *Data types (#7536) (a8321d8)
  • Use discord-api-types Locale (#7541) (8346003)
  • anychannel: Add PartialGroupDMChannel (#7472) (cf66930)
  • Remove ApplicationCommandInteractionOptionResolver (#7491) (71f4fa8)
  • embed: Fix timestamp allowed types (#7470) (7959a68)
  • Remove duplicate rate limit for thread creation (#7465) (2d2de1d)
  • Correct types for InteractionCollector guild and channel (#7452) (6ce906a)
  • Fix GuildAuditLogsTypes keys & typos (#7423) (3d8c776)
  • Remove duplicate GuildChannelOverwriteOptions interface (#7428) (83458ff)
  • Use GuildFeature enum from discord-api-types (#7397) (a7b80b9)
  • Fix *BitField.Flags properties (#7363) (e6a26d2)
  • Fix MessageMentions channel types (#7316) (c05b388)
  • Fix channel create overloads (#7294) (1c6c944)
  • Fix regressions and inconsistencies (#7260) (26a9dc3)
  • interaction: Remove renamed typeguards (#7220) (68b9564)
  • AssertType -> expectType (3f36746)
  • Fix cache types resolving to never (#7164) (c978dbb)