Skip to content

Releases: discordjs/discord.js

14.13.0

17 Aug 19:52
8eb978d
Compare
Choose a tag to compare

Bug Fixes

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

Documentation

Features

Typings

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

14.12.1

01 Aug 00:25
7295a3a
Compare
Choose a tag to compare

Bug Fixes

14.12.0

31 Jul 20:15
c40f754
Compare
Choose a tag to compare

Bug Fixes

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

Documentation

Features

Performance

Refactor

  • User: Remove deprecation warning from tag (#9660) (cf8012c)
  • GuildMember: Make _roles property non-enumerable (#9387) (46167a7)
  • rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)

Typings

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

[email protected]

31 Jul 20:14
43d3b48
Compare
Choose a tag to compare

Bug Fixes

Documentation

  • Add Cloudflare sponsorship in create-discord-bot readme (#9540) (12482b7)

Features

  • create-discord-bot: Throw error if the directory is a file (#9719) (351a18b)
  • create-discord-bot: Add prompts, command handler and deployment script (#9570) (84f1b18)
  • Check for empty directory (#9539) (64324a8)
  • create-discord-bot: Inherit stdio when installing deps (#9543) (c4a3120)

@discordjs/[email protected]

31 Jul 20:12
ccf65c2
Compare
Choose a tag to compare

Bug Fixes

  • WebSocketShard: Close errors not being catchable (#9704) (8c782bf)
  • WebSocketManager: Always cache result of fetchGatewayInformation (#9611) (df8b6e9)
  • WebSocketShard: Handle initial connect being a resume (#9549) (4dcc9c5)

Features

  • No-de-no-de, now with extra buns (#9683) (386f206)
    • BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
      from @vladfrangu/async_event_emitter, which aids in cross-compatibility
      between Node, Deno, Bun, CF Workers, Vercel Functions, etc.
    • BREAKING CHANGE: DefaultUserAgentAppendix has been adapted to support multiple
      different platforms (previously mentioned Deno, Bun, CF Workers, etc)
    • BREAKING CHANGE: the entry point for @discordjs/rest will now differ
      in non-node-like environments (CF Workers, etc.)

Refactor

  • WebSocketShard: Throttling error handling (#9701) (ceab07b)
  • rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
    • BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global fetch
    • BREAKING CHANGE: The raw method of REST now returns a web compatible Respone object.
    • BREAKING CHANGE: The parseResponse utility method has been updated to operate on a web compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

@discordjs/[email protected]

31 Jul 20:10
3c5a4dc
Compare
Choose a tag to compare

Features

  • No-de-no-de, now with extra buns (#9683) (386f206)
    • BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
      from @vladfrangu/async_event_emitter, which aids in cross-compatibility
      between Node, Deno, Bun, CF Workers, Vercel Functions, etc.
    • BREAKING CHANGE: DefaultUserAgentAppendix has been adapted to support multiple
      different platforms (previously mentioned Deno, Bun, CF Workers, etc)
    • BREAKING CHANGE: the entry point for @discordjs/rest will now differ
      in non-node-like environments (CF Workers, etc.)

@discordjs/[email protected]

31 Jul 20:12
d04987f
Compare
Choose a tag to compare

Features

  • No-de-no-de, now with extra buns (#9683) (386f206)
    • BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
      from @vladfrangu/async_event_emitter, which aids in cross-compatibility
      between Node, Deno, Bun, CF Workers, Vercel Functions, etc.
    • BREAKING CHANGE: DefaultUserAgentAppendix has been adapted to support multiple
      different platforms (previously mentioned Deno, Bun, CF Workers, etc)
    • BREAKING CHANGE: the entry point for @discordjs/rest will now differ
      in non-node-like environments (CF Workers, etc.)
  • User avatar decorations (#8914) (8d97017)
  • Support new username system (#9512) (1ab60f9)

Refactor

  • REST: Remove double classing (#9722) (8f4256d)
    • BREAKING CHANGE: REST and RequestManager have been combined, most of the properties, methods, and events from both classes can now be found on REST
    • BREAKING CHANGE: REST#raw has been removed in favor of REST#queueRequest
    • BREAKING CHANGE: REST#getAgent has been removed in favor of REST#agent
  • chore: update for /rest changes
  • rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
    • BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global fetch
    • BREAKING CHANGE: The raw method of REST now returns a web compatible Respone object.
    • BREAKING CHANGE: The parseResponse utility method has been updated to operate on a web compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

@discordjs/[email protected]

31 Jul 20:13
acc5602
Compare
Choose a tag to compare

Refactor

  • REST: Remove double classing (#9722) (8f4256d)
    • BREAKING CHANGE: REST and RequestManager have been combined, most of the properties, methods, and events from both classes can now be found on REST
    • BREAKING CHANGE: REST#raw has been removed in favor of REST#queueRequest
    • BREAKING CHANGE: REST#getAgent has been removed in favor of REST#agent
  • chore: update for /rest changes
  • rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
    • BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global fetch
    • BREAKING CHANGE: The raw method of REST now returns a web compatible Respone object.
    • BREAKING CHANGE: The parseResponse utility method has been updated to operate on a web compatible Response object.
    • BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
    • BREAKING CHANGE: DefaultRestOptions used to contain a default agent, which is now set to null instead.

@discordjs/[email protected]

31 Jul 20:13
8d50f20
Compare
Choose a tag to compare

Bug Fixes

  • core: Fix inconsistencies on core (#9680) (6d5840c)
  • client: Add missing application command permissions update event (#9639) (2818d7c)
  • api: Various fixes for overlooked stuff (#9588) (6c7a5ed)
  • GuildsAPI: Use level rather than mfa_level when editing MFA (#9584) (3535321)
  • roleConnections: Fix body type for updateMetadataRecords() (#9516) (166c961)

Documentation

Features

Refactor

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

Typings

  • Use Snowflake instead of string for snowflakes (#9583) (1c4a12c)

@discordjs/[email protected]

31 Jul 20:11
ca5a262
Compare
Choose a tag to compare

Refactor