Skip to content

Latest commit

 

History

History
1198 lines (1045 loc) · 151 KB

CHANGELOG.md

File metadata and controls

1198 lines (1045 loc) · 151 KB

Changelog

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

13.11.0 - (2022-09-15)

Bug Fixes

  • Fixed TS 4.8 compatibility (#8601) (e6ee7d8)

Documentation

  • Update misleading Client#guildMemberAvailable event description (v13) (#8627) (fcd52d7)

Features

  • GuildBanManager: Add deleteMessageSeconds (#8575) (ca68fc3)

Typings

  • GuildChannelManager: Correct fetch return type (v13) (#8551) (f4e8133)

13.10.3 - (2022-08-22)

Documentation

  • Fix broken discord support link (#8485) (11d6949)

Typings

  • Disallow some channel types from webhook creation (#8535) (10b12cc)
  • ModalMessageModalSubmitInteraction: ChannelId is not nullable (v13) (#8505) (526ea74)

13.10.2 - (2022-08-10)

Typings

  • Message: Correct bulkDelete return type (v13) (#8469) (03c59e3)

13.10.1 - (2022-08-10)

Bug Fixes

  • ThreadChannel: Handle possibly null parent (v13) (#8467) (2a46d9f)

13.10.0 - (2022-08-10)

Features

  • Guild: Add max_video_channel_users (v13) (#8424) (ae43bca)

13.9.2 - (2022-07-29)

Bug Fixes

  • MessageMentions: ignoreRepliedUser option in has() (v13) (#8365) (d0a4199)
  • GuildChannelManager: Allow unsetting rtcRegion (v13) (#8362) (9612507)
  • ThreadChannel: Omit webhook fetching (v13) (#8352) (4f7c1e3)

13.9.1 - (2022-07-23)

Bug Fixes

  • ApplicationCommandManager: Allow passing 0n to defaultMemberPermissions (v13) (#8312) (4cf0555)

Refactor

  • embed: Deprecate addField (#8318) (be35db2)
  • Presence: Remove redundant date parsing (v13) (#8341) (e95caa7)

13.9.0 - (2022-07-17)

Bug Fixes

  • PermissionOverwriteManager: Mutates user (#8282) (4d86cf4)
  • GuildChannelManager: Access resolveId correctly (v13) (#8297) (beb3d8e)
  • GuildChannelManager: Edit lockPermissions (#8267) (8fe166d)
  • applicationcommandmanager: Explicitly allow passing builders to methods (v13) (#8229) (f457cdd)
  • Pass in the expected query object type for application commands (#8189) (f704b26)
  • Use non-global flag whilst resolving regular expressions (#8178) (4063b90)
  • GuildStickerManager.fetchUser: Changed guildId to guild.id (#8176) (0e0f784)
  • guildmemberremove: Remove member's presence for v13 (#8182) (e8d72c7)
  • WebSocketShard: Backport error handler preservation on connections (#8164) (c198e89)

Documentation

  • Add new HTTP Error Codes 50068 (v13) (#8273) (00a7057)
  • Add MessageActivityType (v13) (#8257) (9cc336c)
  • MessageInteraction: Update commandName description (v13) (#8220) (feb8e30)
  • constants: Document missing constants (#8168) (4ae08ad)

Features

  • ApplicationCommand: Add min_length and max_length for string option (v13) (#8217) (a93f4b1)
  • interaction: Add appPermissions (v13) (#8195) (222fc9c)
  • Partially backport perms v2 for v13 (#8162) (125696f)

Typings

  • GuildMemberManager: Non-void return of edit() (v13) (#8187) (631abee)
  • Add missing shard types (v13) (#8192) (079973f)

13.8.1 - (2022-06-23)

Bug Fixes

  • VoiceChannel: NSFW property (v13) (#8161) (c61fc80)
  • ModalSubmitInteraction: Add isFromMessage() missing method (#8092) (0ab2227)
  • Destroy options during cleanup (#8082) (afb18b9)
  • AuditLog: Default changes to empty array (#8076) (3095f35)

Documentation

  • TextBasedChannel-> TextBasedChannels typos (v13) (#8155) (65444f5)

Refactor

  • Deprecate $ prefix from ws.properties keys (#8095) (3638b40)

Typings

  • Shard#reconnecting: Backport to v13 - Fix event name (#8126) (70450f6)
  • AutocompleteOption: Backport fix and improve types (#8078) (613fd43)
  • GuildChannel: Fix type of .isText() method (#8061) (0d0190a)

13.8.0 - (2022-06-05)

Bug Fixes

  • guildchannelmanager: Wrong parameter in _sortedChannels call (#8011) (876816a)
  • websocketshard: Deal with zombie connection caused by 4009 (#7581) (114bcc0)
  • Video quality mode data property (#7946) (76df9fd)
  • ApplicationCommandOptionType: Add attachment to jsdoc (#7952) (a51420f)

Features

  • Backport text-in-voice support to v13 (#7999) (ddfe15b)

13.7.0 - (2022-05-13)

Bug Fixes

  • MessageEmbed: Fix a typo (#7906) (ea28638)
  • GuildEditData: Some fields can be null for v13 (#7633) (816936e)
  • Apply v14 fix (#7756) (ab6c2ba)
  • GuildChannelManager: delete method accessing wrong id (#7771) (c9e4562)
  • GuildScheduledEvent: Handle missing image for v13 (#7627) (dfea9c2)
  • messagementions: Fix has method for v13 (#7591) (7a52785)
  • Check if member has admininistrator on moderatable (v13) (#7578) (13dd82d)
  • ThreadChannel: Require sendable for unarchivable (#7555) (49397c0)
  • Backport MessageReaction#me being incorrectly false (#7553) (5f621c1)
  • typings: SweepStageInstances typo (#7521) (f096069)
  • MessagePayload: V13 don't set reply flags to target flags (#7515) (30baff7)
  • Shard: V13 EventEmitter listener warning (#7479) (77b8e01)
  • MessageEmbed: Set footer to undefined (#7358) (bc5ddc3)

Documentation

  • shardingmanager: Fix type of execArgv option (v13) (#7863) (43a7870)
  • Fix and improve localization docs (v13 backport) (#7807) (6dcf0bd)
  • ApplicationCommand: Fix ApplicationCommandOptionChoice (#7798) (1040ce0)
  • Backport version 13 fixes (#7552) (69ba067)

Features

  • Backport (#7776) (5165b18)
  • Backport (#7787) (3eb45e3)
  • Backport (#7786) (ab324ea)
  • Add support for localized slash commands (v13 backport) (#7766) (022e138)
  • App authorization links and tags for v13 (#7731) (9e4a900)
  • Backport (#7777) (6c56132)
  • Backport (#7778) (ff49b82)
  • Backport (#7779) (ae7f991)
  • Backport (#7783) (cedc333)
  • VoiceChannel: Support video_quality_mode (v13) (#7785) (6daee1b)
  • StageInstance: Add support for associated guild event (#7713) (68498a8)
  • modals: Modals, input text components and modal submits, v13 style (#7431) (e1cdcfa)
  • Backport Interaction#isRepliable (#7563) (5e8162a)
  • Add methods to managers for v13 (#7611) (9f09702)
  • Add premiumSubscriptionCount to InviteGuild (#7629) (8e7d15e)
  • scheduledevents: Event cover images for v13 (#7613) (a7535a2)
  • Backport MessageMentions channel type fixes (#7562) (93cdb2f)
  • Backport cache types resolving to never (#7561) (611d3a7)
  • Backport sending message flags (#7560) (29d42ed)
  • ThreadChannel: Backport creation timestamp (#7559) (1d97dcf)
  • Add custom image support to version 13 (#7557) (679b87c)
  • Backport reason on pin and unpin (#7556) (b231bec)
  • GuildPreview: Add stickers to version 13 (#7554) (215dfe0)
  • Backport sweepStickers method (#7558) (ee1698d)
  • scheduledevents: Add image option (v13) (#7549) (2fcf8af)
  • thread: V13 add newlyCreated to threadCreate event (#7481) (2b3db73)
  • commands: Attachment options (#7441) (5bcca8b)

Refactor

  • Deprecate v13 properties and methods (#7782) (b9802f4)
  • Remove non-breaking stuff (#7636) (b9c5676)

Typings

  • Fix ModalSubmitInteraction (#7768) (1d09ad4)
  • threadchannel: Fix autoArchiveDuration types (#7817) (7afcd95)
  • InteractionCollector: Fix guild and channel types (#7624) (7814074)
  • V13 channel create overloads fix (#7480) (0b54089)

13.6.0 - (2022-01-13)

Documentation

  • interaction: Add locale list link (#7261) (1f4e633)

Features

  • Add Locales to Interactions (#7131) (233084a)

13.5.1 - (2022-01-07)

Bug Fixes

  • sweepers: Provide default for object param (#7182) (2dabd82)
  • GuildMemberManager: Nick endpoint (#7151) (d0c3961)
  • Permissions: ToArray shouldn't check admin (#7144) (fc4292e)
  • Remove deprecation warning on Message#cleanContent (#7143) (7e5f16b)

Documentation

  • Sweepers: Fix typo (#7165) (780b7ed)

Features

  • GuildMember: Add method to check timeout (#7146) (baacd6b)
  • ClientOptions: WaitGuildTimeout amount client option (#6576) (2bfc638)

Refactor

  • MessageEmbed: Deprecate strings for setAuthor() (completely) and setFooter() (#7153) (3496516)
  • Import timers, process, and Buffer from node: (#7157) (3c62bd2)

13.4.0 - (2021-12-24)

Bug Fixes

  • BaseMessageComponent: Don't create new class instances (#7140) (e6f41b5)
  • Make the followUp function error more clear (#7129) (b763dab)
  • StickerPack: Nullify bannerId (#7119) (6bb03f2)
  • Webhook typeguards should use string comparisons (#7127) (645b3f8)
  • Message: Remove usage of .deleted (#7109) (a0fe0ac)
  • GuildAuditLog: Remove Promises in constructor (#7089) (9cf44d1)
  • ShardingManager: Fix respawnAll not passing delay correctly (#7084) (de61fe4)
  • StoreChannel: Mark as deprecated (#7072) (5ec542d)
  • InteractionCollector: Handle thread (and parent) deletion (#7070) (b5cd288)
  • ReactionCollector: Check for channel.threads (#7069) (3846f0d)
  • GuildChannel: Default to this.rawPosition in clone() (#7057) (5fcda73)
  • Interaction channel type should be GuildTextBasedChannels when in guild (#6998) (da86bd4)
  • Util: Fix sorting for GuildChannels (#7002) (c07207f)
  • MessageManager: Do not use client.emojis (#7039) (fd63139)
  • ActionsManager: Revert to manual requires (#7034) (0193efa)
  • MessagePayload: Prevent spread of undefined (#7029) (fabd343)
  • MessageManager: Allow a string for edit() (#7033) (54f937d)
  • Avoid sending bot auth on token endpoints (#7022) (7efeff4)
  • Sharding: Properly handle errors in fetchClientValues (#6990) (c0ba2d4)
  • VoiceState: Set streaming to false when the stream ended (#6992) (fdb09cb)
  • MessageReaction: Cache myself when MessageReaction#me is true. (#6956) (b001e19)

Documentation

  • Deprecate .deleted getters (#7107) (d43f684)
  • Sticker: Fix typo (#7085) (ee91f5a)
  • Constants: Document missing errors (#7086) (6e57b65)
  • Constants: Adjust GUILD_STORE warning placement (#7083) (23513d1)
  • StoreChannel: Add deprecation warnings (#7080) (fdba146)
  • GuildStickerManager: Fix create() example (#7060) (6f58e81)
  • Invite: Add info blocks for missing props (#7014) (b183a8e)
  • MessageReference: Fix static link (#7041) (85e6812)
  • Constants: Fix typo "announcement" (#7016) (a1a8ca4)
  • README: Add installation instruction on @discordjs/voice (#6964) (3c857a6)
  • Guild: Fix setOwner() example (#6929) (dc64541)

Features

  • Add support for GuildScheduledEvent (#6493) (1316fd4)
  • GuildMember: Add timeouts (#7104) (aa7c1b2)
  • Export Sweepers (#7117) (b9b60a3)
  • Add API error code 50109 (#7112) (55960cc)
  • Client: Add global sweepers (#6825) (d1ef2f5)
  • Add API error code 20029 (#7078) (f410536)
  • ApplicationCommand: Add setX methods for easier editing (#7063) (7f980e3)
  • Add API error code 50055 (#7068) (f028aea)
  • SnowflakeUtil: Add timestampFrom (#7058) (8b200c0)
  • Guild: Add premiumProgressbarEnabled (#6887) (552d89f)
  • Add UserContextMenuInteraction and MessageContextMenuInteraction (#7003) (4fe063f)
  • Shard: Add eval context (#7011) (77aff08)
  • ThreadChannel: Add ThreadChannel#viewable (#6975) (db09d79)
  • ThreadManager: Add slowmode option on thread creation (#6989) (493e4f9)
  • MessageAttachment: Description (alt text) support (#6871) (5e0a7d5)
  • ApplicationCommand: Add support for min and max values (#6855) (c30a818)
  • SystemChannelFlags: Add new flag (#6870) (49e3ce2)
  • UserFlags: Add BOT_HTTP_INTERACTIONS (#6733) (f43140a)
  • Add new activity flags (#6699) (47d74eb)
  • ApplicationFlags: Add message content intent flags (#6888) (e94073a)

Refactor

  • UserManager: Move methods to the manager (#7087) (2ed02f7)
  • RoleManager: Move some methods over from Role (#7096) (1e00fc2)
  • Guild: Remove duplicate methods (#7100) (717e0e9)
  • Util: Replace Util.delayFor with tp.setTimeout (#7082) (25b8491)
  • Make Structure#deleted a getter to a WeakSet (#7074) (b093750)
  • SnowflakeUtil: Clean up utils and improve perf (#7036) (e59fac3)
  • MessageEmbed: Utilise an object approach for .setAuthor() (#6966) (73854ee)
  • Deprecate application command events (#6937) (28688e2)

Typings

  • CategoryChannel: Fix createChannel return type (#7138) (1626dde)
  • CategoryChannel: createChannel should default to a text channel (#7132) (a0a5b0e)
  • Make channel types a lot stricter (#7120) (7b65a04)
  • Forward cache types to collector filters (#7126) (77489b9)
  • Fix possibly null message properties (#7111) (bc6a6c5)
  • Use mapped enums instead of overloads (#7088) (49f9a18)
  • MessageComponentInteraction: Ensure component is not null (#7099) (2ce244b)
  • GuildAuditLog: Strengthen types (#7090) (5a5c045)
  • Message: guild should be non-null when message is in guild (#6933) (1230bee)
  • Improve audit logs' typings (#6647) (b6b4570)
  • Interaction: Narrow memberPermissions (#7054) (01f8d1b)
  • ApplicationCommandManager: Deprecate old *Data type usages and allow camel cased dapi types to be used (#6959) (2c91c48)
  • WebhookMessageOptions: Disallow stickers (#7012) (099536e)
  • Remove unneeded collector types (#7008) (c1f2fe2)
  • Make event emitters use mapped event types (#7019) (48555cb)
  • ApplicationSubcommandData: Allow autocomplete to be true (#6981) (ecc61f3)
  • Fix interaction typeguards (#6976) (06cd16f)
  • Strengthen autocomplete option types (#6950) (7630158)
  • Fix cache type fallback types (#6961) (9f240ea)
  • Unify ApplicationCommandManager#create overloads (#6970) (8e881d2)
  • Events: Rest events can be emitted on BaseClient (#6936) (c297829)

13.3.1 - (2021-11-01)

Bug Fixes

  • Assert channel types in message actions (#6919) (9bd3689)
  • MessageEmbed: Only compare image urls in #equals (#6926) (95d2a4d)
  • Correctly access guild IDs inside managers (#6927) (2d9ffb8)

Documentation

  • README: Use correct capitalization of npm (#6930) (bb245b7)

Typings

  • Improve toJSON methods for message components & embeds (#6925) (204aee7)

13.3.0 - (2021-10-29)

Bug Fixes

  • Handle message bulk delete and thread delete in collectors (#6902) (d6685b1)
  • ApplicationCommandManager: Update guild command cache on c/u/d (#6841) (f169c8f)
  • TextBasedChannel: Return the cached message instead of clone it (#6877) (ceaf738)
  • MessageComponentInteraction: Component getter is not null anymore (#6835) (7621e9d)
  • PartialGuildMember#id is not null (#6840) (4dff279)
  • Webhook: Resolve source guild only if cached (#6834) (d193d04)
  • AllowedImageSizes: Add new image sizes (#6844) (ef01b84)
  • MessageReaction: Prevent event double fire from uncached messages (#6818) (267a4b3)
  • Guild: Guild.available is never set on new joins (#6769) (29667c9)
  • Types: Export more types (#6808) (b474677)
  • GuildBanManager: Send reason in the headers instead of json body (#6800) (bfb89de)
  • User: Don't generate the banner URL when not cached (#6783) (0d599a1)
  • GuildMember: More explicit partial check (#6760) (b1656bf)
  • Role: Check for presence of icon and unicode_emoji before patching (#6780) (e31c5ca)

Documentation

  • Constants: Document missing autocomplete interaction constants (#6916) (aa4d055)
  • InteractionCollector: Add info block about being prone to always running (#6906) (5d987ee)
  • GuildStickerManager: Fix create() example (#6900) (bdd841a)
  • InteractionResponses: Move embed var position in example (#6896) (8806039)
  • Application: Rename Oauth2Application to Application (#6891) (76856b9)
  • Util: Deprecate .removeMentions() (#6866) (b6c9fd6)
  • Correct tags used for objects (#6846) (f7b7aac)
  • Redirect to events correctly (#6845) (38cc89e)
  • Typos, consistency and grammar fixes (#6811) (c44ea50)
  • Message: Specify Snowflake in return type of awaitReactions() (#6822) (4354c37)
  • Replace FetchOwnerOptions type definition (#6814) (b030130)
  • Remove dangling reference (#6810) (d57ec7a)
  • InteractionCollector: Remove repeated "the" (#6802) (b1b9c83)
  • MessagePayload: Change the typo of "wether" to "whether" (#6771) (d32956c)

Features

  • ThreadMemberManager: Allow individual members to be fetched (#6889) (14716df)
  • Add support for autocomplete interactions (#6672) (ddf759c)
  • MessageEmbed: Add #equals (#6885) (fae4abf)
  • StartThreadOptions: Default autoArchiveDuration to channel's defaultAutoArchiveDuration (#6278) (740d3f0)
  • Add rtcRegion to GuildManager#create() (#6858) (399e720)
  • Add typeguards to webhooks (#6850) (e0afcad)
  • GuildChannelManager: Add 'rtcRegion' option to 'create' method (#6849) (487d32d)
  • Permissions: Add checkAdmin to permission overwrite checks (#6847) (7513b45)
  • Interaction: Add isApplicationCommand check (#6801) (6898fa3)
  • CommandInteraction: Add toString method (#6793) (bd48e6d)
  • Client: Add apiResponse and apiRequest events (#6739) (26f927b)
  • ModuleImporter: Implement import module compatible with bundlers (#6709) (d399a28)

Refactor

  • Move Guild setPositions methods to managers (#6875) (e12a5b6)
  • Remove gen-esm-wrapper dependency (#6884) (b278884)
  • Fix typos (#6852) (672baa4)
  • GuildManager: Remove redundant check (#6859) (579569a)
  • Remove redundant user agent parsing (#6820) (460df9e)
  • Remove unnecessary checks (#6777) (e24209a)
  • Role: Move initialization of delete prop out of _patch (#6776) (872e7a5)

Typings

  • fix: BaseCommandInteractionOptionResolver and CommandInteraction (#6910) (673c03f)
  • Constants: Remove deleted properties from Package (#6908) (7be9170)
  • Shard: Eval returns a promise resolving with T instead of T[] (#6901) (14d9a99)
  • ApplicationCommandManager: Add missing overload for fetch (#6904) (ee93a27)
  • TextBasedChannel: Text channel interaction collectors should have message option (#6903) (91a432e)
  • Cache types cleanup (#6867) (b2836da)
  • Allow message cached props to be narrowed (#6838) (c3948f8)
  • CommandInteractionOptionResolver: Allow narrowing of getMember() (#6831) (e8b6997)
  • BaseMessageComponent: Remove third parameter of create() (#6833) (d27fddb)
  • Message component cached props narrowing (#6809) (b541d0a)
  • ApplicationCommandOptionData: Remove required on subcommands (#6790) (5566404)
  • Integration: Add IntegrationType values (#6815) (187581d)
  • WelcomeChannelData: Allow store channels (#6778) (45ebea3)
  • Make embed author and footer props name and text required (#6779) (a84e51b)

13.2.0 - (2021-10-05)

Bug Fixes

  • AllowedImageSizes: Add new image sizes (#6754) (d0025be)
  • User: Compare flags in #equals (#6750) (00e1e26)
  • VoiceState: Patch streaming value (#6747) (7eec061)
  • Message: Avoid overwriting properties in _patch (#6738) (a8c21cd)
  • ReactionCollector: Only call the filter function once (#6734) (d15dd5f)
  • Shard: Use provided timeout when respawning (#6735) (905d100)
  • Role: ToJSON() throwing due to permission bigints (#6724) (9e421f6)
  • Don't patch set data with undefined (#6694) (9eb9591)
  • Invite: #guild never resolving into a Guild (#6742) (b76bb8a)
  • GuildManager: Add missing types and converts (#6683) (cdf65f7)
  • Util: Default animated to false when omitted on resolvePartialEmoji (#6725) (8d80fec)
  • Message: Throw error on missing channel (#6581) (60aa9ae)
  • CachedManager: Return updated data when cache is false (#6685) (8426770)
  • GuildEmoji: Cache restricted roles and author data (#6675) (60b8ba6)
  • Constants: Allow undefined size (#6686) (d3da833)
  • *RoleManager: Create set of role ids correctly (#6674) (f8aa4bd)
  • Shard: Eval promise never resolves (#6649) (5070d23)
  • xxxable: Follow more properly with discord behavior (#6551) (5d87398)
  • Allow null to be passed in order to reset icon/avatar (#6646) (6033506)
  • Message: Pinnable returning false in non-DEFAULT messages (#6585) (3183b11)
  • threadMembersUpdate: Fixed typo (#6589) (8826e9f)
  • ThreadChannel: FetchStarterMessage bug (#6584) (08edc0b)
  • Await message component collectors should return component interactions not collectors (#6562) (f49f70a)
  • GuildChannel: Fix manageable method for voice-channels (#6447) (9301c9b)
  • MessageAttachment: Re-assign name (#6518) (8a8c69a)
  • UserUpdateAction: Rely on client.user when ids match (#6511) (1418649)
  • Util: Allow empty strings in splitMessage (#6437) (d6e6244)
  • BaseClient: Remove selfbot ability (#6429) (9a833b1)
  • Sticker: Rename method correctly to _add (#6421) (2c449b6)
  • Message: Fix typo (#6435) (ecb6e50)

Documentation

  • FetchReply info + example (#6753) (8bc1ece)
  • GuildMemberUpdateAction: Event doesn't get emitted on user update (#6752) (1db3e76)
  • Better links for .toJSON() of button and select menu (#6745) (6e5c768)
  • Undocument private constructors (#6732) (34b2ad0)
  • Message: Fix return type for reply (#6720) (3f11009)
  • CommandInteractionResolvedData: Fix key type (#6729) (466e796)
  • EmojiResolvable: Update description of typedef to remove ambiguity (#6708) (7cba676)
  • ApplicationCommandPermissionsManager: Fix example set method (#6658) (839974c)
  • Shard: Point to correct events (#6641) (b9a4899)
  • VoiceChannel: Deprecate editable (#6613) (88e2622)
  • PermissionOverwriteManager: Correct @returns of delete (#6632) (3c3522a)
  • MessagePayload: Correct return type of resolveFile() (#6605) (ea6a57e)
  • MessageButton: Fix info tag (#6590) (db73cf9)
  • WidgetMember: Fix typo for deaf (#6564) (33f6f82)
  • Constants: Fix interaction type link (#6558) (29d5fd1)
  • Fix JSDoc for ClientUser#edit (#6554) (34024f5)
  • Util: Correct @param for cleanContent() (#6531) (b89280a)
  • Formatters: Fix typo of TimestampStyles (#6523) (7d4a40a)
  • GuildChannelCreateOptions: Fix #type type (#6502) (4bfd5d3)
  • ThreadManager: Fix typo (#6485) (8a95211)
  • Fix wrong type being displayed in docs (#6504) (9ca10cc)
  • MessageManager: Fix typo (#6482) (70cc029)
  • MessageReference: Add possible message types (#6464) (93a83c2)
  • ApplicationCommandType: Add DAPI link (#6463) (17b4079)
  • BufferResolvable: Add warning for URL input (#6451) (16493e6)
  • Formatters: Use id over ID (#6439) (84bb4f4)
  • RoleManager: Error in examples (#6416) (759faa4)
  • Rename implementation of deferReply (#6412) (615afab)

Features

  • Add support for role icons (#6633) (7129965)
  • Interaction: Add memberPermissions (#6741) (28d96e3)
  • CategoryChannel: Add createChannel shortcut method (#6614) (3eacf7a)
  • Allow webhooks to fetch, edit and delete messages in threads (#6695) (107822d)
  • Threads: Update permissions and fix getters (#6466) (10478ad)
  • PartialGroupDMChannel: Add recipients & fix name (#6713) (2803db6)
  • GuildMember: Add guild avatars (#5696) (dfd7b40)
  • MessageAttachment: Add support for ephemeral property (#6652) (c5db0ff)
  • ApplicationCommand: Add support for channel_types (#6640) (3b14883)
  • UserManager: Allow #fetch to take UserResolvable (#6677) (a06a87a)
  • Add api error code 50101 (#6663) (42fdcaa)
  • Add support for API command types in ApplicationCommandManager (#6621) (ecd637f)
  • Permissions: Add START_EMBEDDED_ACTIVITIES (#6622) (66a90d3)
  • Integration: Add missing props and fix docs/types (#6623) (caa3b60)
  • Default values for setX boolean methods (#6619) (8add4b0)
  • Add api error code 30042 (#6635) (183dbd7)
  • Give removed MessageReactions on messageReactionRemoveAll event (#6607) (be8912a)
  • ApplicationCommand: Add version property (#6603) (f866512)
  • MessageTypes: Add CONTEXT_MENU_COMMAND (23) (#6425) (d81590d)
  • Add api error code 160002 (#6566) (d16ada9)
  • ApplicationCommand: Add #equals (#6414) (581921f)
  • Threads: Add support for invitable in private threads (#6501) (a693254)
  • BaseGuildTextChannel: Export BaseGuildTextChannel (#6527) (fc51f61)
  • User: Banners and accent colors (#6117) (839c6da)
  • MessageAttachment: Allow files to be marked as spoilers (#6509) (96e26c4)
  • ThreadChannel: Add fetchStarterMessage (#6488) (705c5a1)
  • Message: Add method to resolve a component by id (#6484) (57b94b9)
  • Set methods for MessageActionRow and MessageSelectMenu (#6490) (fb50dd9)
  • Export BaseCommandInteraction (#6478) (c14e594)
  • Guild: Add Guild#maximumBitrate getter. (#6455) (21983de)
  • Message: Prevent fetching an interaction webhook. (#6468) (f39b597)
  • Add maximum prune requests reached api error (#6427) (a4b8623)
  • Rest: Expose https.Agent options (#6177) (5eb3553)
  • InteractionReponses: Allow fetching of ephemeral messages (#6426) (d289d5c)
  • Export ContextMenuInteraction (#6434) (170c0c4)

Performance

  • Use logical assignments instead of if statements (#6693) (e9daa31)

Refactor

  • User: Set accentColor and banner to undefined when not yet received (#6721) (ba93e85)
  • Use optional chaining (#6757) (a194d9c)
  • Use the node: protocol (#6710) (531b46c)
  • VoiceState: Use manager edit method to remove error (#6631) (29dd319)
  • Constants: Better type error in cdn endpoints (#6637) (124e177)
  • ES2021 features (#6540) (00bd92a)
  • Channel: Make delete async (#6417) (71fdf6f)

Typings

  • Interaction: Allow Interaction cached properties to be type narrowed (#6668) (d873a19)
  • Rename Awaited<T> to Awaitable<T> (#6756) (f88f4cc)
  • GuildBanManager: Remove can return null (#6748) (c3f4de4)
  • Add ExcludeEnum utility for easier typings (#6746) (42acc6e)
  • Webhook: More accurate type for sourceChannel (#6751) (32b5c2e)
  • WebhooksUpdate: Allow NewsChannels (#6749) (abf158d)
  • More accurate types instead of GuildChannelResolvable (#6744) (a8e6010)
  • ChannelTypes: Remove unknown from CHANNEL options (#6701) (8b4456e)
  • TextBasedChannels: Fix awaitMessageComponent return type (#6723) (a7cb314)
  • Vanity: Make uses non-nullable (#6715) (3a978f3)
  • Role: Role#comparePositionTo accepts RoleResolvable (#6722) (7c4d1df)
  • Presence: Fix ActivityOptions#type and Activity#id types (#6696) (fe95005)
  • Fix missing channel type in subcommand options (#6706) (da3ae48)
  • Add GuildEmojiManager to Caches (#6671) (1ca8d2c)
  • VoiceState: Allow moving members to stage channels (#6684) (94ca0f5)
  • Interaction: Improve type guard for inGuild() (#6644) (0347826)
  • MessageOptions: Allow APIEmbed (#6656) (92f6471)
  • WelcomeChannel: Allow store channels (#6615) (75d85f7)
  • MessageEmbed: Allow APIEmbed type (#6629) (256fb90)
  • TextBasedChannelFields: Add back createMessageCollector (#6616) (1b016a3)
  • Make channelId non-nullable on MessageComponentInteraction (#6600) (8cc3885)
  • Message#createMessageComponentCollector use MessageComponentInteractionOptions<T> (#6596) (c62823e)
  • MessagePayload: Specify typings for files and resolveFile (#6608) (ea36955)
  • Collector filter parameter inference (#6574) (0841956)
  • MessageReference: Correctly add undefined type (#6563) (cdb0005)
  • @typedef for StageChannelResolvable (#6568) (2c219cb)
  • Allow message component interaction collectors to infer collected interaction types (#6476) (03d5549)
  • CommandInteractionOptionResolver: Document & type thread channels (#6521) (774e960)
  • MessageComponentInteraction: Fix componentType (#6536) (0fe5f88)
  • Mark enums as const enums (#6394) (5c27639)
  • MessageEmbed: Allow null for setTimestamp (#6514) (7aff15a)
  • Require component type in raw object formats (#6452) (c232baa)
  • CommandInteractionOptionResolver: Add missing parameter (#6497) (656b518)
  • ClientPresence: Add type declarations and docs (#6450) (6cac03a)
  • GuildChannel: Added missing typing (#6454) (f294d1e)
  • Message#_patch typings return type (#6433) (81bb68d)

13.1.0 - (2021-08-12)

Bug Fixes

  • StageInstance: Ensure discoverableDisabled is not undefined (#6395) (dce8fc7)
  • WidgetMember: Default to null and not undefined (#6399) (44bbfa5)
  • Guild: preferredLocale to always be a string (#6402) (4a64662)
  • ContextMenuInteractin: Store message as raw value (#6400) (d9456a1)
  • Util: Remove truthy check before isNaN check (#6358) (3c17939)
  • Constants: Fix CDN endpoint typings (#6332) (47d2ef3)
  • Managers: Fix typo in unsupported warning (#6338) (917e71a)
  • GuildMemberRoleManager: Typo (#6335) (d87299b)

Documentation

  • Remove unparsed examples (#6404) (e6f48d8)
  • GuildManager: Increase fetch limit to 200 (#6406) (933d2c5)
  • ApplicationCommandData: Fix type property (#6385) (de3c86f)
  • Update links for api-docs (#6380) (779e14e)
  • Switch urls from upstream rearranging (#6378) (4c8dc4c)
  • Correct wrong interaction links (#6274) (49d3c0b)
  • Invite: MANAGE_CHANNELS instead of MANAGE_CHANNEL (#6361) (0062aa6)
  • Options: DefaultMakeCacheSettings typo (#6365) (ea8d77e)
  • Grammar fixes (#6345) (f13d27c)

Features

  • GuildMemberManager: Add 'list' method (#6403) (2bf0970)
  • GuildManager: Allow setting with_counts to false (#6407) (14aea12)
  • CommandInteractionResolvedData: Access to "raw" resolved data (#6384) (fff887b)
  • Utils: Add additional formatters (#6388) (cd40292)
  • Right-clickybois (context menu support for ApplicationCommand and CommandInteraction) (#6176) (0266f28)
  • Threads: Max autoArchiveDuration option (#6304) (394d486)

Refactor

  • Options: Separate default settings for make cache (#6330) (d14a6bf)

Typings

  • ApplicationCommandData: Make type field optional (#6405) (dcc556c)
  • Constants: Add ApplicationCommandTypes to Constants (#6398) (6342430)
  • ApplicationCommandOptionData: Align command data options types more with discord API (#6247) (297a911)
  • ApplicationCommandData: Stronger typings for ApplicationCommandData variants. (#6382) (75b48d8)
  • Options: CreateDefaultOptions => createDefault (#6376) (2a3e819)
  • Events: Renamed messageReactionAdd's reaction parameter (#6371) (006edca)
  • ImageURLOptions: Allow 'gif' format (#6342) (5f1def3)

13.0.1 - (2021-08-07)

Bug Fixes

  • GuildMemberManager: Refactor fetchMany (#6328) (909c873)
  • Message: Handle fetched messages (#6325) (ceae596)

Documentation

  • Fix bad indentation (#6316) (cd1aefb)

Typings

  • Util: Fix cleanContent parameter type (#6321) (60ace9a)

13.0.0 - (2021-08-06)

Bug Fixes

  • MessageMentions: Check guild exists before adding roles (#6313) (1200bba)
  • GuildMemberManager: FetchMany fixes (#6314) (52817fc)
  • Caching: Sweep archived threads in all channel caches (#6312) (3725dca)
  • Message: Fix thread getter (#6309) (913c9fa)
  • BaseGuildTextChannel: Call patch (#6298) (3eb4140)
  • Remove support for overriding caches that break functionality (#6282) (a6d4035)
  • Message: Make #channel and #guild getters (#6271) (6e3236a)
  • WebSocketShard: Mark shard ready if no guilds intent (#6284) (09471be)
  • Action: GetChannel interaction DM (#6280) (a72b5a3)
  • GuildChannel: SetParent not working (#6276) (7e0618f)
  • ChannelUpdate: Restore accidentally removed line (#6263) (774f5b7)
  • Util: Fix collection import (#6256) (93e0239)
  • Array/keyArray removed (#6245) (bf221f2)
  • TextBasedChannel: Fix MessageCreate handling (#6217) (6b85f90)
  • PermissionOverwrites: Throw better error if resolving option fails (#6219) (42a0313)
  • Channel: Add default for destructured options (#6203) (6872547)
  • Use string instead of Snowflake for invites (#6202) (f060a3f)
  • ThreadChannel: Better property handling (#6172) (9679b90)
  • Export various classes that are exported in the typings (#6166) (30a58dc)
  • Typings: Type attachments to InteractionUpdateOptions (#6162) (4f8ca29)
  • GuildAuditLog: Assert target to null upon not finding invite codes (#6171) (c8ca7bf)
  • Message: Fix typo in sticker_items (#6173) (870a0de)
  • Sticker: Replace 'this.guildID' (undefined) by 'this.guildId' in fetchUser (#6160) (07017a9)
  • CommandInteractionOptionResolver: Type should be USER (#6148) (02f55f0)
  • CommandInteractionOptionResolver: Export CommandInteractionOptio… (#6146) (8ccfd6e)
  • CommandInteraction: Change options type from Collection to array (#6139) (77784ac)
  • GuildChannel: Only fetch invites for the specific channel (#6132) (c40c0f9)
  • PermissionsOverwrites: Only convert type if number (#6092) (dee5c83)
  • Channel type check in actions (#6086) (d433fe8)
  • GuildChannel: Clone its PermissionOverwriteManager too (#6083) (f72ce7c)
  • PresenceUpdate: Use added presence over nullable getter (#6077) (637c8e0)
  • InviteScope: Added missing 'bot' scope (#6052) (93e2c04)
  • SelectMenuInteraction: Set values to empty array if not provided (#6045) (34708d6)
  • Guild: Add invite manager property, extend CachedManager (#6049) (e3d877d)
  • TeamMember: Fixed incorrect return types. (#6044) (fe5d56c)
  • Structures: Remove Structures (#6027) (ab0b3b9)
  • GuildChannel: Use map method on cache not its manager (#6032) (d58f0d2)
  • PermissionOverwriteManager: Pass ID to API correctly (#6026) (8077e4f)
  • GuildChannel: Add missing 'cache' property (#6019) (7e30011)
  • Remove connection.url from open debug message (#6018) (39db953)
  • Util: SplitMessage not working with array (#6008) (bd25ff5)
  • Correct permissions checks and cache on update (#6015) (568691c)
  • ThreadManager: Fixed wrong private and fetchAll check (#6012) (e4be666)
  • Typings: Improve components typings in MessageEditOptions (#6002) (3a718d8)
  • ApplicationCommand: Fix typo in JSDoc (#5994) (6edf55c)
  • ThreadChannel: Check for existence of properties when patching (#5961) (9ac6867)
  • Typings: Erronous RawMessage (5842e35)
  • Thread: Make archive_timestamp not nullable (#5965) (edab5af)
  • Sharding: Strict type context and return (#5933) (1925d01)
  • Webhook: Return void from #delete for consistency. (#5954) (5ad83a6)
  • Collector: Docs and types (#5937) (6c447b1)
  • Message: Make author of referenced message nullable (#5929) (dc671c8)
  • User: Fix bot and system properties being incorrect in some cases (#5923) (e44ae96)
  • ThreadMemberManager: Fix ThreadMemberManager#add and ThreadMemberManager#fetch (#5927) (adecead)
  • Webhook: Resolve non-string avatars too (#5914) (4714a96)
  • ApplicationCommand: StringType isn't supposed to be sent to the API (#5916) (ca2a36b)
  • Permissions: Allow admin to override in the missing method (#5911) (ee025b0)
  • InteractionResponses: Set replied status on editReply (#5899) (6d3d00b)
  • Message: Flags not being parsed on some edits (#5886) (2d7c12b)
  • Guild: Don't patch before instance properties (#5885) (174b7a7)
  • presenceUpdate: Fire when only state/details change on an activity (#5846) (1f8f3ab)
  • Message: EditedTimestamp defaulting to 0 (#5847) (671436c)
  • ApplicationCommand: Default option.required fix (#5848) (a1f94f6)
  • Guild: SetChannelPositions null parenting (#5841) (01a1fd6)
  • ApplicationCommand: Default option.required to false (#5838) (77c1f15)
  • GuildManager: #create throws when systemChannelFlags is undefined (#5832) (29173bf)
  • GuildChannel: Don't force parentID/permissionOverwrites to empty on create (#5823) (c585933)
  • GuildChannel: Improve empty overwrite handling for permissionsLocked (#5821) (6df3623)
  • ApplicationCommands: Allow managing commands for uncached guilds (#5729) (24e5868)
  • ClientApplication: Freeze flags (#5811) (e990c35)
  • *: Typedefs and typings for image & webhook options (#5805) (a5a6e22)
  • TextBasedChannel: Allow passing an APIMessage with split (#5815) (93b0a4e)
  • PermissionOverwrites: Optional allow/deny OverwriteData (#5810) (a7ebb21)
  • Typings: Fix BitField toJSON/valueOf return types (#5806) (935f819)
  • Hooks: Make husky hooks executable (#5812) (77e28cf)
  • GuildChannel: Clone errors when options.name isn't provided (#5804) (41673b7)
  • WebSocketShard: Don't catch errors thrown in event handlers (#5803) (53d8e49)
  • Don't patch missing properties from partial payloads (#5796) (097c7b9)
  • GuildChannel: Spread clone options to avoid infinite recursion (#5800) (2f5424b)
  • Webhook: Throw an error if no token is available when it's required (#5798) (eb98e33)
  • ClientPresence: Produce valid activities for set presences (#5799) (ea0e06f)
  • BitField: Ensure missing returns an array of strings (#5795) (68f7aeb)
  • ApiMessage: Only pass objects as options directly (#5793) (3578159)
  • BitField: Throw an error if bit to resolve is undefined (#5565) (0156f69)
  • Remove remnants of awaitMessageComponentInteractions (#5783) (ae78a33)
  • *: Add missing imports for custom errors (#5767) (e980948)
  • ShardingManager: Client error event cannot be emitted (#5559) (d1c5b6f)
  • Add components to MessageOption typedefs (#5768) (657635c)
  • Interaction: Add missing types and fix docs lists (#5762) (1d57754)
  • Webhook: #editMessage throws error when content is null (#5757) (2901fd5)
  • MessageComponentInteraction: Correctly type defer method (#5760) (f0dad26)
  • RoleManager: Bug in #create (#5730) (cf22456)
  • Message: Update typings and docs related to #edit (#5745) (a2f0c11)
  • Typings: Add missing typings for HttpError -> requestData (#5742) (3e9ce35)
  • MessageEmbed: Import custom RangeError class (#5740) (bfe01b5)
  • CommandInteraction: Cmds with no options throw error (#5734) (af2fad9)
  • CommandInteraction: Channel type should be text based channels (#5690) (5141ea4)
  • GuildMemberManager: Allow moving members to any non-text channel (#5681) (d21e6af)
  • Interfaces not importing due to re-export of Snowflake (#5723) (086c3f0)
  • PermissionOverwrites: Fix typo in typedef jsdoc (#5704) (6567ba8)
  • Types: Make event listeners accept async callbacks (#5602) (a73a5cf)
  • GuildEmojiRoleManager: Bug in #remove (#5666) (c89bdd7)
  • ApplicationCommandOptionData: Options property should be itself (#5679) (b90b0c3)
  • APIMessage: Document Interaction as valid MessageTarget (#5678) (9f491ff)
  • Message: Bug in #suppressEmbeds due to #5612 (#5644) (840ad0a)
  • Lint-staged for typescript files (5f6ec22)
  • DataResolver: Fix circular dependency error with GuildTemplate (#5622) (b376f31)
  • ApplicationCommandManager: Limit permission methods to guilds (#5613) (03256bd)
  • CommandInteraction: Update typings and docs for #editReply (#5630) (56d44fb)
  • ApplicationCommand: Return string equivalent of ApplicationCommandOptionType (#5617) (a6079bc)
  • Resolve emoji in Message#react (#5614) (c733436)
  • Typo in GuildMemberManager (#5616) (73f4114)
  • Message: Editing with MessageEmbed or APIMessage (#5612) (74e97ef)
  • VoiceReceiver: Fix memory leak (#5609) (2eac842)
  • ApplicationCommandManager: Fix typo in JSDoc (#5603) (3392eb7)
  • Sticker: File renamed to SnowflakeUtil (#5573) (f830eb7)
  • Emoji: Name can be null (#5513) (5397021)
  • GuildMemberRoleManager: Unable to remove roles when passed an array (#5556) (9572521)
  • Typings for 'Message' (#5518) (0d68ca8)
  • HTTPOptions: Change default value in jsdoc to 8 (#5547) (cb50241)
  • GuildAuditLogsEntry: Executor can be missing (#5500) (e9bf206)
  • typings: Update GuildMemberRoleManager typings to match implementation (#5497) (900e576)
  • MessageMentions#channels: Fix type of channels of mentions (#5370) (565d7b3)
  • Resolvables: Valid resolvables throw error when uncached (#5495) (fa5a37e)
  • GuildChannel: Check for community required channels in GuildChannel#deletable (#5170) (b710a43)
  • GuildMember: Correctly check for premium_since (#5312) (aff3625)
  • Voice: Only skip undocumented voice packet byte if present (#5309) (2b52cdc)
  • Typings for 'WebhookMessageOptions' (#5476) (67025e6)
  • IntegrationApplication: Add missing export to index.js (#5475) (8023250)
  • ApplicationFlags: Export class (#5465) (404ce57)
  • Voice: Disconnect if voice channel not cached (#5467) (3af8179)
  • InviteDelete: Guild can be missing (#5457) (6c6b105)
  • ReactionUserManager: Remove before query option (#5281) (43bd568)
  • GuildManager: Add missing toString() on Permission#resolve fns (#5324) (0778926)
  • GuildChannel: Regression on default channel type (#5251) (e7c4f36)
  • Guild/GuildChannel: Methods reason arg usage (#5419) (8411b9e)
  • Role: Pass Permissions class, not the bitfield (#5321) (d744e51)
  • WebSocketShard: Key name in WebSocketShard#_send. (#5304) (56d8b44)
  • ApiMessage: Remove resolve() from typings (#5241) (a6bc39d)
  • GuildChannel: Overload permissionsFor and BaseManager#resolve[id] (#5260) (41bd6c2)
  • GuildEmoji: Check for cahnges to available in equals (#5201) (f95f5dc)
  • VoiceConnection: Make #dispatcher nullable (#5217) (0d5de43)
  • Message: Update getters to take null permissions into account (#5066) (98b1c58)
  • typings: Return types for 'Webhook(Client)#send()' (#4876) (eb28ee7)
  • MessageEmbed: Include author.name in length getter (#5167) (e37160f)
  • Collection: ToJSON() errors if the collection includes empty values (#5129) (2c2249e)
  • Implement valueOf on pseudomanagers (#4595) (8883a01)
  • Add presence to ClientPresence from ClientOptions (#5041) (9c7fe34)
  • Filtering of string forms of null and undefined (#5075) (9042d19)
  • ChannelManager: Avoid crash in remove method with uncached channel (#4937) (12c909e)
  • Message: #system non-zero message types are not guaranteed to be system (#5108) (bb78120)
  • UserFlags: Correct early bot dev name, remove deprecated aliases (#5104) (b509862)
  • Collector: Throw an error if a non-function was provided as filter (#5034) (7365f40)
  • BaseGuildEmoji: Typo in requiresColons (#5076) (e272fd6)
  • MessageReaction: Set MessageReaction#me in patch method (#5047) (6b322f4)
  • Voice*: Filter out silent audio from video users (#5035) (4fcb9eb)
  • GuildTemplate: 'guild' getter (#5040) (53529bd)
  • RoleManager: Fix ID return value, change return type to collection (#4935) (12a096b)

Documentation

  • Grammatical fix (#6311) (7787a76)
  • Grammar fixes (#6308) (0664477)
  • General cleanup and improvements (#6299) (b4afcf8)
  • Typo in ClientOptions (#6305) (dd3a79e)
  • Grammar fix (#6294) (90c2e07)
  • Client: Mark _finalize as private (#6281) (35fa3b3)
  • Update link of the guide to v13 changes (#6273) (6e0ea02)
  • Add missing semicolon to readme (#6270) (2c452df)
  • Change example in readme to slash command (#6250) (626ff85)
  • InteractionResponses: Correct @returns on responses (#6257) (bb56f17)
  • Refactor a few @returns descriptions (#6228) (82daee5)
  • Widget: Add the typedef WidgetChannel (#6182) (8b52d06)
  • Update readme node version requirement (#6241) (797727a)
  • GuildManager: Correct GuildCreateOptions typo (#6224) (2675b08)
  • Constants: Document the Constants object for enum-like usage (#6208) (cc5f1ce)
  • Guild: Correct GuildRolePosition typo (#6223) (40b127e)
  • WelcomeChannel: Correct guild return type (#6222) (d310e4f)
  • Constants: Fix StickerTypes typedef (#6218) (105a194)
  • MessageMentions: Fix documentation for members property (#6206) (f44bfc4)
  • Guild: Add GuildTextChannelResolvable type definition (#6221) (1009ce1)
  • InteractionResponses: Document missing properties (#6178) (5e433b5)
  • CommandInteraction: Correct type definition of CommandInteractionOption (#6169) (5e70694)
  • InteractionResponses: Reply docs example (#6079) (b170fb5)
  • InteractionResponses: Generalize wording in update to fit other component interaction types (#6074) (67e9ce4)
  • ClientUser: Fix shardId nullable (#6072) (28b5ffb)
  • Fixed several typings and MessagePayload#create JSDoc (#6059) (4c0426c)
  • ThreadChannel: Fix documentation for setLocked method (#6053) (8d9ab74)
  • MessageManager: Document options param for #edit as required (#6031) (db60e36)
  • Add Partial typedef (#6029) (b62d646)
  • Fix some missed MessageComponent collector methods (#6023) (610b0b4)
  • *: Wrap optional properties with union types in parentheses (#6021) (ec06ba7)
  • Collector: Properly document endReason (#6016) (7dd1a8d)
  • CreateInviteOptions: Fix TargetType link (#6017) (4adfc45)
  • *: Add class links to isX() methods (#6007) (fbdad6e)
  • WebSocketShard#send and TextBasedChannel#send (#5998) (726073f)
  • Util: Methods removed on the base object (#5990) (d742814)
  • Partials: Add link to the guide (#5982) (58183d4)
  • MessageSelectMenu: Add link to Discord docs (#5984) (f819416)
  • ThreadManager: Fix FetchedThreads typedef and startMessage (#5971) (f108746)
  • Message: Add ThreadChannel as a channel type (#5972) (58bc145)
  • ThreadManager: Fix reason prop of ThreadCreateOptions (#5970) (5dfd7dd)
  • Channel: Fix description of thread channel types (#5968) (853be62)
  • Drop string from MessageButtonStyleResolvable (#5944) (41f718f)
  • Features: Resolved typo in FATEWAY_PRESENCE_LIMITED (#5952) (d38b347)
  • Webhook: Fix thread example in send method (#5953) (d3d19ce)
  • Channel: Make the type news_thread an inline code-block (#5940) (630432b)
  • Thread: Add links to discord api docs (#5919) (5af2ef5)
  • MessageSelectMenu: Fix options typings (#5922) (75837a8)
  • *: Add links to Discord's API objects & data (#5862) (e0efcc6)
  • Move embeds field into BaseMessageOptions (#5902) (6cebeae)
  • Readme: Remove dependencies badge (#5901) (edf6f0c)
  • AnonymousGuild: Add missing extends tag (#5896) (3d96a33)
  • VoiceState: Channel can be null (#5872) (807ea2d)
  • ReplyMessageOptions,MessageEditOptions: Replaced embed with embeds (#5860) (e3ed74a)
  • Consistent application name usage (#5853) (96a4e7b)
  • TextBasedChannel#send: Update embeds example (#5857) (a6dae75)
  • ButtonInteraction: Fix typo (#5835) (9376ee4)
  • Removed topics and FAQ from the repository (#5820) (9e5106d)
  • README: Re-add install command, remove voice remnants (#5817) (55ad6f0)
  • MessageEmbed: Deprecation advisory for type (#5774) (f5f3f77)
  • Messages: Fix examples in messages after changes in #5758 (#5791) (35c2225)
  • ApplicationCommand: Typos in ApplicationCommandPermissionData (#5789) (4511624)
  • GuildMemberManager: Fix docs for #search() (#5784) (0139e10)
  • CommandInteraction#channelID is type of Snowflake (#5776) (32d8c8b)
  • InteractionDeferOptions: Correctly define the typedef (#5769) (4567cd4)
  • Add new guild features (#5755) (f7e420b)
  • Message: Fix content param in #edit not showing as nullable (#5748) (df9b678)
  • All the missing object -> Object changes (#5738) (b317d86)
  • Remove traces of StringResolvable (#5727) (678b7da)
  • Webhook: Update typings and docs for #editMessage (#5713) (256d1b0)
  • Message: Add example for message.reply (#5332) (7d7d2a5)
  • TextChannel: Warning about setRateLimitPerUser NewsChannel (#5403) (47bbdf4)
  • Fix InteractionDeferOptions typedef (#5694) (add924c)
  • ColorResolvable: Add Fuchsia to ColorResolvable typedef (#5676) (7d9818e)
  • Add new typedef to properly doc InteractionReplyOptions (#5632) (3589e0f)
  • Guild: Add proper punctuation to #fetchOwner jsdoc (#5645) (c8d20a4)
  • Correct casing of object -> Object in AuditLogChange (#5636) (ab82caf)
  • GuildChannelManager: Add stage option (#5608) (d219ecd)
  • MessageEmbed: MessageEmbedOptions typedef (#5466) (4a06dd1)
  • Update invite link, change version in the intro (#5592) (533c247)
  • VoiceState: #setRequestToSpeak and #setSuppressed returns a Promise instead of void (#5558) (705d7b3)
  • GuildChannelManager: Fix type options in description (#5440) (936516c)
  • ClientUser: #setPresence does not return a promise (#5485) (599f0f5)
  • GuildChannel: #members add cached spec, include voice (#5385) (e848d25)
  • BanOptions: Make days description more clear (#5327) (dedf432)
  • Update docs and examples for #4879 (#5323) (685b260)
  • GuildMember: Document owner override in permissions getter (#5320) (62ba249)
  • ChannelManager: Fetch can return Promise (#5422) (1c8b109)
  • Guild: Clarified description of guild.features (#5352) (941e36f)
  • BaseManager: Fix a typo in #resolveID description (#5180) (640a663)
  • BitFields: Remove string from BitFieldResolvable (#5122) (9ffcd83)
  • MessageEditOptions: Add the flags parameter (#5126) (2aea7dd)
  • RoleManager: Fetch description (#4920) (be0f383)
  • TextBasedChannel: Indicate that replyTo cannot be system (#5115) (5c4547e)
  • Permission overwrite methods descriptions (#5079) (77d4237)
  • Client: #emojis is a BaseGuildEmojiManager (#5048) (2685b96)
  • User: Fix typos in jsdoc (#5060) (09d0755)
  • WebSocketManager: Fix type of status (#5059) (9f3c3e0)

Features

  • Collector: Return a boolean on checkEnd (#6289) (f473f43)
  • Channel: Add isVoice() (#6297) (5b4efd1)
  • Constants: Added more error codes (#6234) (6b2098f)
  • MessageEmbed: Add setFields method (#6186) (a25e165)
  • ThreadChannel: Add fetchOwner() method (#6207) (331a9d3)
  • Util: Add SweptCollection for auto sweeping of caches (#6110) (dbb59ba)
  • WebhookClient: Allow creation of clients via URLs (#6192) (e000af5)
  • FetchRecommendedShardsOptions: Account for large bot sharding (#6184) (19b242a)
  • GuildAuditLogs: Add threads (#6195) (26ba0e1)
  • Guild: Add fetchWidget() for getting widget data (#6180) (b22272f)
  • ApplicationCommandOptionType: Add NUMBER (10) (#6128) (2f1cc1f)
  • CommandInteractionOptionResolver: Add sub-command required option (#6165) (690c121)
  • Sticker: Updates, sticker packs, and guild stickers (#5867) (54d6a3a)
  • GuildPreview: Add createdAt & createdTimestamp (#6130) (9f039a8)
  • CommandInteraction: Add CommandInteractionOptionResolver (#6107) (f293132)
  • Make Instance#fetch force true by default, and fix force parameter (#6116) (366f3c9)
  • REST: Append additional information to the required User Agent (#6112) (f200f14)
  • Client: Add conditional ready typings (#6073) (4206e35)
  • Allow channels from uncached guilds to be returned from fetch (#6034) (755c180)
  • Collector: Better types for events (#6058) (c0a814f)
  • Message: Add 'failIfNotExists' to ClientOptions (#6038) (28c5724)
  • LimitedCollection: Export LimitedCollection (#6043) (31d3129)
  • Client: Enforce passing scopes to generateInvite (#6024) (c6e5521)
  • Managers: ✨ Add GuildInviteManager (#5889) (9e08b02)
  • Managers: Add customizable caching for managers (#6013) (8c7cb0e)
  • InteractionCollector: Reworked to be more generic (#5999) (374c779)
  • PermissionOverwriteManager (#5318) (e7ad2fe)
  • Formatters: Added new URL utilities and docs (#6014) (98e45a5)
  • RoleManager: Added edit method, alias Role#edit (#5983) (1e73c25)
  • StageChannel: Add createStageInstance method & use better naming convention (#5951) (71fb33a)
  • Channel: Add isThread typeguard for better TS support (#5978) (b7ed675)
  • Util: Added formatters (#5976) (8c7a28f)
  • Interactions: Option to auto-fetch replies (#5831) (5e28ff8)
  • Interaction: Add guild guard (#5955) (87e8cdd)
  • Managers: New ApplicationCommandPermissionsManager (#5897) (6264c60)
  • MessageComponentInteraction: Component getter (#5840) (1439183)
  • MessageMentions: Add repliedUser (#5905) (2616125)
  • MessageSelectMenu: Droppybois (#5692) (e5fcf0b)
  • Api v9 and threads (#5570) (7346621)
  • InteractionCreate: Move to an Action handler (#5906) (ea49f7c)
  • Add missing APIError codes (#5898) (d930c81)
  • Interactions: Improve error handling for ephemeral responses (#5892) (bd9f56a)
  • Add APIError codes for stage instance (#5888) (c850ae1)
  • WelcomeScreen: Welcome screens (#5490) (44e2ee7)
  • Stage instance invite (#5856) (2d12db0)
  • Guild: Add enum for premium_tier (#5868) (a3cbcca)
  • *: Use enums for consistency and speed (#5843) (f7eeccb)
  • Widget: Wrapper for widget.json (#5619) (038ee99)
  • Stage instances (#5749) (918921e)
  • *: Document and support embeds field in message create endpoint (#5792) (99ff715)
  • Guild: Add enum for mfa_level (#5797) (ffabec3)
  • RequestHandler: Emit more info when a rate limit was hit (#5801) (18ac72e)
  • Add new APIErrors (#5794) (e0ab836)
  • Util: Allow array for StringOptions' char (#5566) (fbcbb29)
  • GuildAuditLogs: Make #target a channel for channel related logs (#5781) (eb0291d)
  • Sharding*: Contexts for broadcastEval (#5756) (c6aeebb)
  • Voice: Implement support for @discordjs/voice (#5402) (7b2e12b)
  • General component improvements (#5787) (c4f1c75)
  • GuildChannelManager: Add 'fetch' method (#4966) (e798fb7)
  • Rest: Optional ratelimit errors (#5659) (16f261e)
  • Promisified single interaction collection (#5770) (c2b3ed0)
  • Message: ApplicationID for interaction responses (#5765) (65dc00f)
  • Client: Make use of with_expiration in #fetchInvite (#5764) (bf191df)
  • Interactions: Add InteractionWebhook for better internals (#5712) (dec191a)
  • MessageComponents: Clickybois (MessageButton, MessageActionRow, associated Collectors) (#5674) (cbd7f2b)
  • Esm: Use gen-esm-wrapper instead of manually making the file (#5700) (db0d7d4)
  • Rest: Show the data that is sent to Discord when an errors occurs (#5701) (ef92339)
  • CommandInteraction: Make options a collection (#5705) (fdad140)
  • *: Enforce strings (#4880) (7b85a72)
    • BREAKING CHANGE: Removes all Resolvables for only string inputs
    • Co-authored-by: SpaceEEC spaceeec@yahoo.com
  • Message: Allow editing files into messages (#5718) (b212b64)
  • Easier guards for channelUpdate (#5716) (d52bcd4)
  • Add support for fetching multiple guilds (#5472) (48d6850)
  • Guild: Add the new nsfw_level property (#5660) (3fe7add)
  • InteractionDeferOptions (#5641) (ed593c9)
  • CommandInteraction: Ephemeral followup messages (#5618) (68b40dd)
  • GuildChannel: CreateInvite target options (#5514) (f831872)
  • MessageEmbed: Remove normalizeField validation (#5459) (ff2f737)
  • GuildMemberManager: Extend API coverage (#4872) (2e2464b)
  • GuildChannel: Make createOverwrite and updateOverwrite not dependent on cache (#5489) (58763b0)
  • MessageManager: Extend API coverage (#4869) (c56c4a8)
  • Message: Add ReplyMessageOptions for #reply (#5296) (7ce741d)
  • ShardingManager: Add options typings (#5583) (31b4390)
  • GuildChannel#clone: Support for position property (#5236) (d455cb6)
  • GuildBanManager (#5276) (6d09160)
  • APIRequest: Support setting global headers in HTTPOptions (#5586) (135abcc)
  • Message: Replace referencedMessage with fetchReference (#5577) (1398431)
  • Message: Allow removing attachments (#5557) (ca9e5a0)
  • Add support for application command events (#5596) (9f74f95)
  • Interactions (#5448) (f7643f7)
  • Sticker: Added Sticker (#4909) (026afc2)
  • Webhook: Add 'fetchMessage' method (#5530) (63398d6)
  • GuildManager: Allow system channel flags in create (#5504) (d9fa180)
  • Guild: SetChannelPositions parent, lockPermissions keys (#5507) (4866e26)
  • Webhook: SourceGuild, sourceChannel, improve owner (#5508) (116ecf2)
  • Guild: Allow description and features in edit (#5505) (8a059cc)
  • Util: Make cleanContent take a channel instead of a message (#5535) (f1c0c04)
  • Guild: Nsfw guilds (#5525) (5968323)
  • Guild: Replace owner with fetchOwner (#5480) (1be67b8)
  • GuildFeatures: Added the new screening features (#5328) (3c175cb)
  • MessageAttachment: Support for #contentType (#5481) (7b161f9)
  • SysChanFlags: New flag and rename in sync with client (#5506) (fe93a7e)
  • Move internal regular expressions to static properties (#5384) (207735c)
  • typings: Add ShardingManager.shardList to type definitions (#5446) (32b0d71)
  • typings: Explicitly type PremiumTier and Collectors (#5458) (7c49612)
  • Make changes to PresenceData typings and docs (#5317) (eb43ce4)
  • MessageTypes: Add 16 and 17 (#4685) (c9107e3)
  • GuildMemberManager: Add 'search' method (#4154) (0ba2bcb)
  • Stage channels (#5456) (eec7cf7)
  • Activity: Add missing fields (#4984) (63ff6a0)
  • Webhook: Add '(edit|delete)Message' methods (#5223) (7cabc1c)
  • Rest: Better handling of global rate limit and invalid request tracking (#4711) (9d2d606)
  • Application: Application flags (#5147) (06e9d86)
  • WebSocketManager: Let identify throw on depleted limits (#5283) (624a446)
  • Jsdelivr default file support (#5424) (f469402)
  • Client: Add InviteGenerationOptions#additionalScopes (#5215) (ae3c3d8)
  • ReactionCollector: Event create (#4108) (09d1f2f)
  • ShardingManager: Allow b-Eval/fetchClientValues on a specific shard when not all are ready (#5222) (001676c)
  • GuildChannel: Support conversion between text and news (#5022) (5ac3b57)
  • BitField: Move problematic bit into the error message (#5228) (273e955)
  • ClientEvents: Add tuple labels to event arguments (#5225) (764966e)
  • GuildMember: #pending (#5121) (c4c8171)
  • GuildEmojiManager: Implement GuildEmojiManager#fetch (#4933) (ffe3140)
  • Browser: Remove browser � (#5113) (0a591a9)
  • Role: Role tags (#4628) (d6234b7)
  • APIMessage: Remove disableMentions (#4836) (4107899)
  • GuildMember: Make GuildMember#setNickname first param nullable (#5070) (d70127c)
  • Message|TextChannel: Inline replies (#4874) (60e5a0e)
  • BaseGuildEmojiManager (#4934) (8d650a7)
  • Message: Added string type for message nonce (#4782) (4b555fd)
  • GuildMemberManager: Throw TypeError on incorrect GuildMemberManager#ban params (#4816) (863734a)

Refactor

  • Replace dependency with initial implementation (#6310) (d5e28c2)
  • Interaction: Rename defer to deferReply (#6306) (4241feb)
  • InteractionCollector: Only keep Ids of objects (#6084) (b639b6c)
  • Channels: Fix incorrectly shared properties (#6262) (5be471b)
  • Added TextBasedChannels type (#6286) (61db5f7)
  • MessageComponents: Default setDisabled to true (#6279) (3c7c822)
  • *: Use async functions (#6210) (e2e4f65)
  • GuildChannel: Use filter method for #members (#6253) (7c54076)
  • VoiceState: Change kick to disconnect (#6251) (24931d7)
  • Merge collections with keeping entries at max (#6242) (bb5e648)
  • Message: Accept a single object instead of 3 arguments (#6244) (434e330)
  • Move member adding to manager (#6231) (198a5c4)
  • Use guild-wide route for fetching active threads (#6193) (2a07055)
  • Remove extended collection (#6246) (00bae4f)
  • Strengthen channel typings in appropriate places (#6232) (65ae064)
  • Message: Make thread a getter for accuracy (#6215) (5f710ae)
  • Match subcommand (group) name casing with Discord's (#6204) (a69e2f7)
  • Only cache commands from own user (#6161) (4886ae2)
  • Message: Combine patch methods (#6071) (cd47a52)
  • CommandInteractionOptionResolver: Add readonly data property (#6156) (328501b)
  • OptionResolver: Accept single type instead of an array (#6154) (5addcd1)
  • Change const enums to interfaces (#6078) (63ce065)
  • ActionsManager: Less complex code (#6102) (4d53d0f)
  • Remove timer utilities from Client (#6113) (5ca97c9)
  • Remove typing caching (#6114) (576eee8)
  • Channel: Change channel types to UPPER_CASE (#6035) (6301728)
  • Managers: Rename add to _add (#6060) (9cd5e7e)
  • ApplicationCommandManager: Remove unused assignment (#6063) (98a5b52)
  • Rename Constants.OPCode to Opcode, moved objects to enums (#6065) (4eb3a2a)
  • PresenceManager: Have Presence extend Base and simplify add (#6056) (ded93fe)
  • Presences: Remove from User, nullable on GuildMember (#6055) (afbd5db)
  • Intents: Remove computed shorts (#6050) (3022b0f)
  • Remove lastMessage properties from User and GuildMember (#6046) (1a27f57)
  • typings: General cleanup (#6047) (676118a)
  • Change xID to xId (#6036) (a7c6678)
  • Improve typings and docs related to threads (#5991) (4bf4980)
  • Util: Make class extend null (#6000) (2446ff5)
  • Rename events to be consistent with WS names (#6010) (a11a105)
  • New node features (#5132) (1e8f012)
  • Presence: Remove second assignment of syncID (#5956) (fb8d516)
  • MessagePayload: Rename APIMessage (#5921) (b15d825)
  • Removed code and split options (#5918) (985d4d6)
    • Co-authored-by: Jan 66554238+vaporox@users.noreply.github.com
    • BREAKING CHANGE: Removed APIMessage#split
    • BREAKING CHANGE: Removed MessageEditOptions#code
    • BREAKING CHANGE: Removed BaseMessageOptions#code
    • BREAKING CHANGE: Removed BaseMessageOptions#split
  • Collector: Make filter an option (#5903) (0d0c8f0)
  • Remove exported shortcuts to util methods (#5904) (1816a93)
  • Package: Remove runkitExampleFilename (#5866) (6cceb93)
  • awaitMessageComponentInteraction: Use options object for lib consistency (#5852) (9dda9b7)
  • *: Make typedefs for all options params (#5785) (1ac9a2e)
  • GuildPreviewEmoji: Make roles an array (#5720) (4dbcaf7)
  • APIMessage: Remove unused declarations (#5836) (02693bc)
  • Fetch options consistency (#5824) (7111b4c)
  • GuildChannel: Use Permissions.defaultBit over 0n (#5822) (19d0405)
  • Remove all voice code (#5818) (fdef940)
  • MessageEmbed: Remove files (#5813) (e3e466d)
  • Guild: Remove region from guild and manager methods (#5766) (a1f763e)
  • Enforce single param on sending/editing methods (#5758) (0467a90)
  • GuildAvailable, typingStop from Constants (#4861) (dda5ee2)
  • Interactions: Move Structures import out of switch block (#5763) (84e5b07)
  • Remove _roles from pseudo-managers (#5721) (53d952a)
  • Deps: Use async-queue package (#5662) (14c6802)
  • *: Return the invalid element when erroring from Array (#5314) (eaf332f)
  • MessageOptions: Move replyTo to reply#messageReference and add failIfNotExists (#5298) (1ecda83)
  • Sticker: Rename Snowflake variable (#5575) (af00ec8)
  • RequestHandler: Use x-ratelimit-reset-after when present (#5511) (a5d41c9)
  • Remove error-silencing try/catch on event handler imports (#5542) (cdcc50f)
  • Sharding: Use options objects (#5510) (c9b5353)
  • Add discord-api-types as a dependency (#5539) (1b827fe)
  • Rename Snowflake to SnowflakeUtil (#5502) (164ddf6)
  • Guild: Remove fetchVanityCode() (#5471) (0a2e0c0)
  • Collector: Make endReason a getter (#5271) (8d14ee3)
  • Switch api and gateway to V8 (#4879) (ee5bc1a)
  • Client: Remove fetchAllMembers option (#5257) (aaed72b)
  • GuildMember: Remove GuildMember#hasPermission (#5152) (5401b92)
  • Util: Remove convertToBuffer (#5237) (a33eed7)
  • Message: Remove stored edit history (#5155) (8c2e6b7)
  • RoleManager (#5131) (2a0dcc5)
  • Message: Remove options for Message#delete (#4999) (75e6dfb)
  • Client: Improve generateInvite() (#5065) (5b51392)

Testing

  • Types: Add notPropertyOf type-only utility (#6051) (03fe6ee)
  • Client should destroy (#5353) (4099c28)

Typings

  • MessageButtonOptions: Clean up and export some button option type definitions (#6291) (ae6200e)
  • Make MessageTarget extend on TextBasedChannels (#6296) (5b0621f)
  • Caches: Add GuildStickerManager and GuildInviteManager (#6268) (15aea68)
  • Use api-types for stricter typings (#6230) (00c2bf8)
  • ButtonMessageOptions: Make button/link button typings more specific (#6212) (77c72e6)
  • WsEvents: Add thread ws events (#6194) (4f1f32f)
  • DataManager: Add 'K' to type parameter of 'resolveId' (#6152) (8586505)
  • ColorResolvable: Readonly tuple (#6153) (1e90be8)
  • Message: Mark #thread as nullable (#6129) (ef5ba05)
  • Options: Add types for cacheWithLimits (#6095) (8db6df3)
  • Interaction: Change inGuild return type (#6094) (60148c6)
  • PartialWebhookFields: Add APIMessage to deleteMessage union (#6085) (a9e7ebd)
  • Interactions: Fix function overloads (#6109) (98c6078)
  • Guild: Remove fetchVoiceRegions (#6099) (a8984bc)
  • Partial: Add partial reactions (#6066) (d6c43a5)
  • Test: Fix overloads for channel create (5b6be0c)
  • GuildInviteManager: FetchInvitesOptions (#6076) (c1eaa78)
  • Fixed unreachable overloads (#6062) (7322547)
  • ApplicationCommand: Fix option name (#6067) (58bbcd5)
  • *: Revert incorrect unknown type changes (#6057) (2e078e4)
  • Options: Should extend null (#6042) (c4aa9fe)
  • Voice: Move types to the library's definitions (#6041) (185e376)
  • Better fullPermissions typings (#6028) (2ab32e6)
  • MessageOptions: Fix components being optional (#6005) (56b5b7e)
  • *: Create mention types (#6003) (0dc5dd5)
  • VoiceState: Fix optional params (#5993) (1242c54)
  • ClientUser: Updated setAFK signature (#6011) (c40b06c)
  • MessageSelectMenu: Fix typings (#5995) (fe6cc0c)
  • Interactions: Fix function overload types (#5989) (521d26c)
  • Few missing thread channels (#5988) (941cd86)
  • MessageOptions: Improved component typings (#5987) (0eeb277)
  • ApplicationCommandPermissionsManager: Fix types (#5979) (388e05b)
  • ThreadChannel: Make locked and archived param optional (#5980) (a08ce7d)
  • *: Make hex color types compatible with ColorResolvable (#5973) (788d58e)
  • CommandInteraction: Readd followUp type (#5974) (ae37d20)
  • ThreadManager: Add type to ThreadManager#create options (#5969) (3174507)
  • ColorResolvable: Change string to #${string} (#5950) (acdcb90)
  • Define ApplicationCommand enums in lib (#5947) (e37ef3a)
  • Fix remaining Raw type references, update discord-api-types dep (#5942) (03d3a5c)
  • ThreadMemberManager: Fix incorrect usage (#5928) (6065b11)
  • MessageReactionResolvable: Add string (#5863) (a0b7d95)
  • GuildApplicationCommandManager: Allow undefined command (#5837) (d5bb758)
  • Corrected shard broadcastEval (#5834) (a0a56e2)
  • MessageComponentInteraction: Update should return Promise (#5829) (08cffd6)
  • Extendable: Add ButtonInteraction (#5802) (19fd162)
  • Extend MessageComponentInteractionCollector correctly (#5752) (c6696d8)
  • Fix awaitReactions typings for returned collection (43fc40e)
  • Change remaining string IDs to Snowflakes (#5737) (ff4d6dd)
  • Snowflake: Export the type (#5722) (66a6a1f)
  • Use Snowflake type (#5717) (76db642)
  • PermissionOverwriteOptions: Remove unused interface (#5651) (b40027b)
  • WebhookMessageOptions: Omit reply instead of replyTo (#5610) (2345c6d)
  • Remove typings for Client#disconnect event (#5469) (a4d09ab)
  • PermissionOverwrites: Use correct parameter type for resolveOverwriteOptions (#5302) (ca5f371)
  • MessageReaction: Allow message to be partial (#5303) (aac6275)
  • RateLimitData: Remove timeDifference property (#5208) (80e1afb)
  • Make Client#voice non-nullable (#5148) (40d77ba)