slimp/node_modules/discord.js/CHANGELOG.md
2023-06-12 11:40:38 -04:00

404 KiB

Changelog

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

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)

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)

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)

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)