You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/additional-info/updating-from-v14.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@ Make sure you're using the latest LTS version of Node. To check your Node versio
14
14
15
15
`ApplicationCommand#dmPermission` and `ApplicationCommand#setDMPermission()` have been removed. This was legacy functionality for commands—use contexts instead.
16
16
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
+
17
21
### AnnouncementChannel
18
22
19
23
`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
24
28
25
29
### Client
26
30
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
+
27
35
#### Ping
28
36
29
37
`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
`ClientEvents` type has been removed. Use `ClientEventTypes` instead. This change ensures consistency with the rest of the event types across the library.
81
+
70
82
### ClientOptions
71
83
72
84
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
210
222
+ const { message } = response.resource;
211
223
```
212
224
225
+
#### GuildMemberResolvable
226
+
227
+
`GuildMemberResolvable` type has been removed. It was defined as `GuildMember | UserResolvable`, but `UserResolvable` already includes `GuildMember`. Use `UserResolvable` instead.
228
+
213
229
#### Premium response type
214
230
215
231
Discord no longer supports the `PREMIUM_REQUIRED` interaction response type. In the past, you would have done this:
0 commit comments