Releases: discordjs/discord.js
Releases · discordjs/discord.js
14.12.1
14.12.0
Bug Fixes
- ChannelUpdate: Check against unknown channels (#9697) (7fb91c5)
- Action: Use existing recipients if available (#9653) (719e54a)
- Everyone role members (#9685) (0803eb5)
awaitMessageComponent
withMessageComponentInteraction
s (#8598) (b61e4fb)- ThreadManager: Fix internal crash upon conditionally resolving thread members (#9648) (a6dbe16)
- User: Check global name in equals (#9631) (8f3bd38)
- WebSocketManager: Await WebSocket destroy (#9519) (75308f2)
- Client: Safe call for possibly null WebSocket (#9600) (24a6149)
- ThreadManager: Ensure
fetchActive()
only returns active threads in a channel (#9568) (53aa24d) - LimitedCollection: Allow items to be stored if keepOverLimit is true when maxSize is 0 (#9534) (9345d1b)
- AutocompleteInteraction: Prevent snake casing of locales (#9565) (7196fe3)
Documentation
- Change
Channel
toBaseChannel
(#9718) (e5effb6) - BaseChannel: Remove
APIChannel
(#9717) (125405f) - BuildersSelectMenuOption: Update link (#9690) (ede9f4e)
- ClientOptions: Change default value of sweepers in docs (#9591) (911e6ef)
- Client: Correct invite gateway permission checks (#9597) (e1b6eee)
- Fix broken links to new documentation (#9563) (d01e8aa)
Features
- Add ws option support for "buildIdentifyThrottler" (#9728) (6307f81)
- Client: Add
guildAvailable
event (#9692) (3c85fb2) - User avatar decorations (#8914) (8d97017)
- Add silent option to ShardingManager (#9506) (df40dcd)
- EmbedBuilder: Add
.length
(#8682) (53c17e0) - Guild onboarding (#9120) (dc73c93)
- Add resume event in shard (#9650) (a73d54e)
- presence: Re-introduce image resolving for other platforms (#9637) (73c2f8a)
- Add message to send resume event to shard (#9626) (a873ec1)
- Support new username system (#9512) (1ab60f9)
- GuildAuditLogsEntry#extra: Add missing
channel
property (#9518) (2272321)
Performance
- Channel: Linear speed position getter (#9497) (09b0382)
- Role: Improve
members
getter (#9529) (37181ab)
Refactor
- User: Remove deprecation warning from tag (#9660) (cf8012c)
- GuildMember: Make
_roles
property non-enumerable (#9387) (46167a7) - rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
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 andconst
type parameters in places (#9641) (cd69868) - BaseInteraction:
appPermissions
notnull
in guilds (#9601) (6c2242f)
[email protected]
@discordjs/[email protected]
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.)
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
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 compatibleResponse
object. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptions
used to contain a defaultagent
, which is now set tonull
instead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
@discordjs/[email protected]
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.)
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
@discordjs/[email protected]
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.)
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
- User avatar decorations (#8914) (8d97017)
- Support new username system (#9512) (1ab60f9)
Refactor
- REST: Remove double classing (#9722) (8f4256d)
- BREAKING CHANGE:
REST
andRequestManager
have been combined, most of the properties, methods, and events from both classes can now be found onREST
- BREAKING CHANGE:
REST#raw
has been removed in favor ofREST#queueRequest
- BREAKING CHANGE:
REST#getAgent
has been removed in favor ofREST#agent
- BREAKING CHANGE:
- 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 compatibleResponse
object. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptions
used to contain a defaultagent
, which is now set tonull
instead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
@discordjs/[email protected]
Refactor
- REST: Remove double classing (#9722) (8f4256d)
- BREAKING CHANGE:
REST
andRequestManager
have been combined, most of the properties, methods, and events from both classes can now be found onREST
- BREAKING CHANGE:
REST#raw
has been removed in favor ofREST#queueRequest
- BREAKING CHANGE:
REST#getAgent
has been removed in favor ofREST#agent
- BREAKING CHANGE:
- 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 compatibleResponse
object. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptions
used to contain a defaultagent
, which is now set tonull
instead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
@discordjs/[email protected]
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 thanmfa_level
when editing MFA (#9584) (3535321) - roleConnections: Fix
body
type forupdateMetadataRecords()
(#9516) (166c961)
Documentation
Features
- WebhooksAPI: Allow
with token
requests without bot auth (#9715) (bc83cab) - Guild onboarding (#9120) (dc73c93)
- ChannelsAPI: Add permission overwrites (#9651) (78381a5)
- api: Add stage instances (#9578) (985def3)
- GuildsAPI: Add
removeMember()
(#9576) (5d6eed6) - api: Add
getMemberBans()
query options andgetMemberBan()
(#9569) (590f5bc) - client: Support more request member fields (#9475) (1edd01a)
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 compatibleResponse
object. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptions
used to contain a defaultagent
, which is now set tonull
instead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
Typings
@discordjs/[email protected]
@discordjs/[email protected]
- Version bump for updated dependencies