Skip to content

Releases: discordjs/discord.js

create-discord-bot@0.2.0

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/ws@1.0.0

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/util@1.0.0

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/rest@2.0.0

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/proxy@2.0.0

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/core@1.0.0

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/collection@1.5.2

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

Refactor

@discordjs/builders@1.6.4

31 Jul 20:15
1fc9308
Compare
Choose a tag to compare
  • Version bump for updated dependencies

create-discord-bot@0.1.0

07 May 16:20
3bfb619
Compare
Choose a tag to compare

Features

14.11.0

06 May 09:13
5bfcf93
Compare
Choose a tag to compare

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

Refactor

Typings

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