Skip to content

Commit ecc0c0d

Browse files
committed
feat(additional-info): add more breaking changes
1 parent dcba1b3 commit ecc0c0d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

guide/additional-info/updating-from-v14.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Make sure you're using the latest LTS version of Node. To check your Node versio
1414

1515
`ApplicationCommand#dmPermission` and `ApplicationCommand#setDMPermission()` have been removed. This was legacy functionality for commands—use contexts instead.
1616

17+
### ApplicationCommandManager
18+
19+
`ApplicationCommandManager#fetch()` method has been updated for consistency with other managers. Previously, it accepted two parameters: `id` (a snowflake or an options object) and an `options` object. Now, it only accepts a single `options` argument, which can be a snowflake or an options object that may include an `id` property.
20+
1721
### AnnouncementChannel
1822

1923
`AnnouncementChannel#addFollower()` now returns `FollowedChannelData` instead of a snowflake. This helps to expose the created webhook id in the target channel.
@@ -24,6 +28,10 @@ Make sure you're using the latest LTS version of Node. To check your Node versio
2428

2529
### Client
2630

31+
#### Emojis
32+
33+
`Client#emojis` has been removed due to confusion with the introduction of application emojis and performance impact. Use `resolveGuildEmoji` utility function to get a cached guild emoji.
34+
2735
#### Ping
2836

2937
`Client#ping` has been added to replace the old `WebSocketManager#ping`. This will be `null` when the heartbeat from the gateway is yet to be received.
@@ -67,6 +75,10 @@ The underlying WebSocket behaviour has changed. In version 14, this was a non-br
6775
- [discordjs/discord.js#10420](https://github.com/discordjs/discord.js/pull/10420)
6876
- [discordjs/discord.js#10556](https://github.com/discordjs/discord.js/pull/10556)
6977

78+
### ClientEvents
79+
80+
`ClientEvents` type has been removed. Use `ClientEventTypes` instead. This change ensures consistency with the rest of the event types across the library.
81+
7082
### ClientOptions
7183

7284
Removed `ClientOptions#shards` and `ClientOptions#shardCount` in favor of `ClientOptions#ws#shardIds` and `ClientOptions#ws#shardCount`.
@@ -210,6 +222,10 @@ There are two ways to achieve the same behaviour, so the "helper" option has bee
210222
+ const { message } = response.resource;
211223
```
212224

225+
#### GuildMemberResolvable
226+
227+
`GuildMemberResolvable` type has been removed. It was defined as `GuildMember | UserResolvable`, but `UserResolvable` already includes `GuildMember`. Use `UserResolvable` instead.
228+
213229
#### Premium response type
214230

215231
Discord no longer supports the `PREMIUM_REQUIRED` interaction response type. In the past, you would have done this:

0 commit comments

Comments
 (0)