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
Manage your application state with pm2 so you can restart, stop and delete processes dynamically: [learn more](https://discordjs.guide/improving-dev-environment/pm2.html)
111
+
Manage your application state with pm2 so you can restart, stop and delete processes dynamically: [learn more](https://discordjs.guide/legacy/improving-dev-environment/pm2)
112
112
"""
113
113
114
114
[node-opus]
@@ -140,7 +140,7 @@ If your channel changes are not going through, this might be why.
- Caches in discord.js are [Collections](https://discord.js.org/docs/packages/collection/stable) which extend the native [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map) structure.
- Caches in discord.js are [Collections](https://discord.js.org/docs/packages/collection/stable) which extend the native [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) structure.
Explaining `<Class>` and `Class#method` notation: [learn more](https://discordjs.guide/additional-info/notation.html)
361
+
Explaining `<Class>` and `Class#method` notation: [learn more](https://discordjs.guide/legacy/additional-info/notation)
362
362
"""
363
363
364
364
[collection]
365
365
keywords = ["collections", "collection-methods"]
366
366
content = """
367
-
discord.js uses [Collection](https://discord.js.org/docs/packages/collection/stable), an extension of the JS native [Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map) structure.
discord.js uses [Collection](https://discord.js.org/docs/packages/collection/stable), an extension of the JS native [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) structure.
@@ -429,7 +429,7 @@ Your bot is trying to send a DM to a user, but failed to do so:
429
429
- The user has DMs disabled or the bot blocked
430
430
- The user no longer shares a guild with the bot (make sure to send informational DMs before banning/kicking)
431
431
- The bot is trying to DM itself or another bot
432
-
Note: You cannot check if you can send a DM beforehand but have to handle the [rejection case](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/try...catch)
432
+
Note: You cannot check if you can send a DM beforehand but have to handle the [rejection case](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch)
433
433
"""
434
434
435
435
[path]
@@ -442,7 +442,7 @@ keywords = [
442
442
"filepath",
443
443
]
444
444
content = """
445
-
- File paths explained in detail: [learn more](https://www.redhat.com/sysadmin/linux-path-absolute-relative)
445
+
- File paths explained in detail: [learn more](https://redhat.com/en/blog/linux-path-absolute-relative)
- Note: if you initialize your Client as `bot` or other identifiers you need to use these instead of `client`
752
-
- If the output is too long to post consider using a bin instead: [gist](https://gist.github.com) | [sourceb.in](https://sourceb.in) | [hastebin](https://www.toptal.com/developers/hastebin)
752
+
- If the output is too long to post consider using a bin instead: [gist](https://gist.github.com) | [sourceb.in](https://sourceb.in) | [hastebin](https://toptal.com/developers/hastebin)
You only need to convert it to an array if you need the index of an entry:
873
-
- Iteration (looping) is possible with [`for...of`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/for...of#iterating_over_a_map) over [`Collection#values`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map/values) or [`forEach`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach)
873
+
- Iteration (looping) is possible with [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of#iterating_over_a_map) over [`Collection#values`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values) or [`forEach`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach)
874
874
- You can transform a Collection to an array with [`Collection#map`](https://discord.js.org/docs/packages/collection/stable/Collection:Class#map)
875
-
- If you need indices, you can get the array using [`[...collection.values()]`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map/values)
875
+
- If you need indices, you can get the array using [`[...collection.values()]`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values)
876
876
"""
877
877
878
878
[member-count]
@@ -914,7 +914,7 @@ content = """
914
914
You have already replied to the interaction.
915
915
- Use `<Interaction>.followUp()` to send a new message
916
916
- If you deferred reply it's better to use `<Interaction>.editReply()`
917
-
- Responding to [slash commands](https://discordjs.guide/slash-commands/response-methods.html) / [message components](https://discordjs.guide/interactive-components/interactions.html#responding-to-component-interactions)
917
+
- Responding to [slash commands](https://discordjs.guide/legacy/slash-commands/response-methods) / [message components](https://discordjs.guide/legacy/interactive-components/interactions#responding-to-component-interactions)
We highly recommend only specifying the [intents](https://discordjs.guide/popular-topics/intents) you actually need.
975
+
We highly recommend only specifying the [intents](https://discordjs.guide/legacy/popular-topics/intents) you actually need.
976
976
- Note, that `98303`, `32767` or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
977
977
- The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
Fetching members can time out on large guilds, as they arrive in chunks through the WebSocket connections.
1002
1002
- You can specify the `time` option in `FetchMembersOptions` to specify how long you want to wait.
1003
-
- Make sure you have the required `GuildMembers` [gateway intent](https://discordjs.guide/popular-topics/intents) enabled
1003
+
- Make sure you have the required `GuildMembers` [gateway intent](https://discordjs.guide/legacy/popular-topics/intents) enabled
1004
1004
"""
1005
1005
1006
1006
[custom-client-properties]
1007
1007
keywords = ["custom-properties-on-client"]
1008
1008
content = """
1009
1009
We highly recommend you extend the `Client` structure properly instead of just attaching custom properties like `.commands` to the regular discord.js `Client` instance.
1010
-
- Using typescript, you might want to consider [casting](https://www.typescripttutorial.net/typescript-tutorial/type-casting/) or [augmenting the module type](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)
1010
+
- Using typescript, you might want to consider [casting](https://typescripttutorial.net/typescript-tutorial/type-casting/) or [augmenting the module type](https://typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)
1011
1011
"""
1012
1012
1013
1013
[components-per-message]
@@ -1064,14 +1064,14 @@ To debug your voice connection and player:
1064
1064
[http-interactions-bot]
1065
1065
keywords = ["no-status"]
1066
1066
content = """
1067
-
HTTP-only applications receive interactions through HTTP webhooks instead of the Discord Gateway. Bots that are not connected to the Gateway, but use HTTP interactions appear as online without a status. Discord.js does not support HTTP interactions. Use [discord-interactions](https://www.npmjs.com/package/discord-interactions) instead.
1067
+
HTTP-only applications receive interactions through HTTP webhooks instead of the Discord Gateway. Bots that are not connected to the Gateway, but use HTTP interactions appear as online without a status. Discord.js does not support HTTP interactions. Use [discord-interactions](https://npmjs.com/package/discord-interactions) instead.
1068
1068
"""
1069
1069
1070
1070
[interaction-buttons-in-webhooks]
1071
1071
keywords = ["no-button"]
1072
1072
content = """
1073
1073
Only webhooks created by an application can send messages with components, so Discord knows which application to send the corresponding interactions to.
1074
-
- Creating webhooks with discord.js: [learn more](https://discordjs.guide/popular-topics/webhooks.html#creating-webhooks-with-discord-js)
1074
+
- Creating webhooks with discord.js: [learn more](https://discordjs.guide/legacy/popular-topics/webhooks#creating-webhooks-with-discordjs)
1075
1075
"""
1076
1076
1077
1077
[force-fetch]
@@ -1168,7 +1168,7 @@ Rate limits are determined based on the IP address of the sender.
- You can only set default permissions (member and DM) in your code. [learn more](https://discordjs.guide/slash-commands/permissions.html#member-permissions)
1171
+
- You can only set default permissions (member and DM) in your code. [learn more](https://discordjs.guide/legacy/popular-topics/permissions#checking-member-permissions)
1172
1172
- Be aware that server staff can overwrite all of the suggested permissions to their liking in Server Settings > Integrations.
1173
1173
"""
1174
1174
@@ -1217,7 +1217,7 @@ The `ephemeral` option when replying to an interaction will be removed in v15
1217
1217
```diff
1218
1218
- {..., ephemeral: true}
1219
1219
+ {..., flags: MessageFlags.Ephemeral}
1220
-
``` Read [here](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Bitwise_OR>) on how to specify multiple flags
1220
+
``` Read [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_OR) on how to specify multiple flags
0 commit comments