Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions tags/tags.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Message formatting (mentions, timestamps, emoji, etc.): [learn more](https://dis
[pm2]
keywords = ["restart"]
content = """
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)
Manage your application state with pm2 so you can restart, stop and delete processes dynamically: [learn more](https://www.discordjs.guide/legacy/improving-dev-environment/pm2)
"""

[node-opus]
Expand Down Expand Up @@ -140,7 +140,7 @@ If your channel changes are not going through, this might be why.
[faq]
keywords = ["frequently-asked-questions", "guide-faq", "guidefaq"]
content = """
**F**requently **A**sked **Q**uestions: [learn more](https://discordjs.guide/popular-topics/faq)
**F**requently **A**sked **Q**uestions: [learn more](https://www.discordjs.guide/legacy/popular-topics/faq)
"""
hoisted = true

Expand Down Expand Up @@ -199,7 +199,7 @@ const channel = client.channels.cache.get("222086648706498562");
const channel = guild.channels.cache.find(channel => channel.name === "general");
```
- 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.
- [learn more](https://discordjs.guide/additional-info/collections.html)
- [learn more](https://www.discordjs.guide/legacy/additional-info/collections)
"""

[node-version]
Expand Down Expand Up @@ -358,14 +358,14 @@ content = """
[notation]
keywords = ["<>", "understanding-notation", "notation-guide"]
content = """
Explaining `<Class>` and `Class#method` notation: [learn more](https://discordjs.guide/additional-info/notation.html)
Explaining `<Class>` and `Class#method` notation: [learn more](https://www.discordjs.guide/legacy/additional-info/notation)
"""

[collection]
keywords = ["collections", "collection-methods"]
content = """
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.
- Guide: [learn more](https://discordjs.guide/additional-info/collections.html) [🍪](https://gist.github.com/almostSouji/71a33e5f8e84a0960b4ed3a1609915f5)
- Guide: [learn more](https://www.discordjs.guide/legacy/additional-info/collections) [🍪](https://gist.github.com/almostSouji/71a33e5f8e84a0960b4ed3a1609915f5)
"""
hoisted = true

Expand All @@ -382,7 +382,7 @@ content = """
keywords = ["undici", "node-fetch", "http-requests", "call-rest-apis"]
content = """
Making HTTP requests (for example to call rest APIs)
- Node: [learn more](https://www.npmjs.com/package/undici)
- Node: [learn more](https://nodejs.org/en/learn/getting-started/fetch)
- MDN: [learn more](https://developer.mozilla.org/docs/Web/API/Fetch_API)
"""

Expand All @@ -406,7 +406,7 @@ hoisted = true
keywords = ["oauth2", "oa", "oa2"]
content = """
Oauth is about giving access to your stuff without sharing your identity
- [oauth.net](https://oauth.net/code/nodejs) | [Discord API](https://discord.com/developers/docs/topics/oauth2) | [guide example](https://discordjs.guide/oauth2)
- [oauth.net](https://oauth.net/code/nodejs) | [Discord API](https://discord.com/developers/docs/topics/oauth2) | [guide example](https://www.discordjs.guide/legacy/oauth2/oauth2)
"""

[masked-links]
Expand Down Expand Up @@ -497,7 +497,7 @@ keywords = ["2-factor-auth", "two-factor-auth", "2-factor-authentication"]
content = """
`DiscordAPIError: Two factor is required for this operation`
Elevated permissions are required to execute this action. You need to activate 2FA on your developer account in order to do this with the bot.
- Elevated permissions: [learn more](https://discordjs.guide/popular-topics/permissions-extended.html#elevated-permissions)
- Elevated permissions: [learn more](https://www.discordjs.guide/legacy/popular-topics/permissions-extended#elevated-permissions)
- Setting up 2FA: [learn more](https://support.discord.com/hc/articles/219576828)
"""

Expand Down Expand Up @@ -594,7 +594,7 @@ keywords = [
content = """
Resources to understand Promise:
- MDN: [learn more](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Using_promises)
- Guide: [learn more](https://discordjs.guide/additional-info/async-await.html)
- Guide: [learn more](https://www.discordjs.guide/legacy/additional-info/async-await)
- JavaScript info: [learn more](https://javascript.info/async-await)
"""
hoisted = true
Expand Down Expand Up @@ -672,7 +672,7 @@ Checking for things to not be equal in JavaScript:
- if (!yourVariable === yourOtherVariable) // !yourVariable is coerced to a boolean value
+ if (yourVariable !== yourOtherVariable) // checks that one is not equal to the other
```
- Comparison operators in JavaScript: [learn more](https://developer.mozilla.org/docs/Web/JavaScript/Guide/Expressions_and_Operators#Comparison)
- Comparison operators in JavaScript: [learn more](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_operators#comparison_operators)
"""

[member-user]
Expand All @@ -689,7 +689,7 @@ Despite sounding similar there is a distinct difference between users and member
keywords = ["lint", "eslint", "jslint"]
content = """
"Lint, or a linter, is a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs."
- Set up a linter in your development environment: [learn more](https://discordjs.guide/preparations/setting-up-a-linter.html)
- Set up a linter in your development environment: [learn more](https://www.discordjs.guide/legacy/preparations/linter)
"""

[voice-timeout]
Expand All @@ -715,9 +715,9 @@ keywords = [
content = """
**We do not provide any help with third party libraries**
discord.js supports message components natively.
- Select Menus: [learn more](https://discordjs.guide/interactive-components/select-menus)
- Buttons: [learn more](https://discordjs.guide/interactive-components/buttons)
- Modals: [learn more](https://discordjs.guide/interactions/modals)
- Select Menus: [learn more](https://www.discordjs.guide/legacy/interactive-components/select-menus)
- Buttons: [learn more](https://www.discordjs.guide/legacy/interactive-components/buttons)
- Modals: [learn more](https://www.discordjs.guide/legacy/interactions/modals)
"""

[find-id]
Expand Down Expand Up @@ -847,15 +847,15 @@ keywords = ["changes", "v14", "14"]
content = """
Version 14 has released! Please update at your earliest convenience.
- Update: `npm rm discord.js` `npm i discord.js`
- [Update guide](https://discordjs.guide/additional-info/changes-in-v14.html) (use `CTRL` + `F` to search for the old method or property)
- [Update guide](https://www.discordjs.guide/legacy/additional-info/changes-in-v14) (use `CTRL` + `F` to search for the old method or property)
"""
hoisted = true

[intents]
keywords = ["no-members"]
content = """
- Websocket intents limit events and decrease memory usage: [learn more](https://discordjs.guide/popular-topics/intents.html)
- See what intents you need [here](https://discord.com/developers/docs/topics/gateway#list-of-intents)
- See what intents you need [here](https://www.discordjs.guide/legacy/popular-topics/intents)
"""

[privileged-intents]
Expand Down Expand Up @@ -914,7 +914,7 @@ content = """
You have already replied to the interaction.
- Use `<Interaction>.followUp()` to send a new message
- If you deferred reply it's better to use `<Interaction>.editReply()`
- 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)
- Responding to [slash commands](https://www.discordjs.guide/legacy/slash-commands/response-methods) / [message components](https://www.discordjs.guide/legacy/interactive-components/interactions#responding-to-component-interactions)
"""

[djs-sponsor]
Expand Down Expand Up @@ -965,14 +965,14 @@ content = """
keywords = ["receive-dms", "not-getting-dms", "not-getting-dms"]
content = """
To receive direct message events on `"messageCreate"` with your bot, you will need:
- The `DirectMessages` [gateway intent](https://discordjs.guide/popular-topics/intents)
- The `Channel` [partial setting](https://discordjs.guide/popular-topics/partials)
- The `DirectMessages` [gateway intent](https://www.discordjs.guide/legacy/popular-topics/intents#privileged-intents)
- The `Channel` [partial setting](https://www.discordjs.guide/legacy/popular-topics/partials)
"""

[all-intents]
keywords = ["98303", "32767", "magic-intents", "magic-all-intent"]
content = """
We highly recommend only specifying the [intents](https://discordjs.guide/popular-topics/intents) you actually need.
We highly recommend only specifying the [intents](https://www.discordjs.guide/legacy/popular-topics/intents) you actually need.
- Note, that `98303`, `32767` or whatever other magic number you read that represents "all intents", gets outdated as soon as new intents are introduced.
- The number will always represent the same set of intents, and will not include new ones. There is no magic "all intents" bit.
"""
Expand Down Expand Up @@ -1000,7 +1000,7 @@ keywords = ["member-timeout"]
content = """
Fetching members can time out on large guilds, as they arrive in chunks through the WebSocket connections.
- You can specify the `time` option in `FetchMembersOptions` to specify how long you want to wait.
- Make sure you have the required `GuildMembers` [gateway intent](https://discordjs.guide/popular-topics/intents) enabled
- Make sure you have the required `GuildMembers` [gateway intent](https://www.discordjs.guide/legacy/popular-topics/intents) enabled
"""

[custom-client-properties]
Expand Down Expand Up @@ -1071,7 +1071,7 @@ HTTP-only applications receive interactions through HTTP webhooks instead of the
keywords = ["no-button"]
content = """
Only webhooks created by an application can send messages with components, so Discord knows which application to send the corresponding interactions to.
- Creating webhooks with discord.js: [learn more](https://discordjs.guide/popular-topics/webhooks.html#creating-webhooks-with-discord-js)
- Creating webhooks with discord.js: [learn more](https://www.discordjs.guide/legacy/popular-topics/webhooks#creating-webhooks-with-discordjs)
"""

[force-fetch]
Expand Down Expand Up @@ -1168,7 +1168,7 @@ Rate limits are determined based on the IP address of the sender.
[application-command-permissions]
keywords = ["command-permissions", "slash-permissions"]
content = """
- You can only set default permissions (member and DM) in your code. [learn more](https://discordjs.guide/slash-commands/permissions.html#member-permissions)
- You can only set default permissions (member and DM) in your code. [learn more](https://www.discordjs.guide/legacy/popular-topics/permissions#checking-member-permissions)
- Be aware that server staff can overwrite all of the suggested permissions to their liking in Server Settings > Integrations.
"""

Expand Down