From 054eaec7d7d02200b07a7d4cbd80b43f8b2f84cf Mon Sep 17 00:00:00 2001 From: Jaw0r3k Date: Tue, 7 Nov 2023 18:51:10 +0100 Subject: [PATCH] fix: update broken links (#9926) fix: update some links Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --- apps/guide/src/content/01-home/01-introduction.mdx | 2 +- apps/guide/src/content/01-home/02-whats-new.mdx | 2 +- .../content/03-creating-your-bot/01-configuration-files.mdx | 2 +- .../src/content/03-creating-your-bot/03-adding-commands.mdx | 4 ++-- .../03-creating-your-bot/04-handling-command-interactions.mdx | 2 +- .../03-creating-your-bot/05-registering-slash-commands.mdx | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/guide/src/content/01-home/01-introduction.mdx b/apps/guide/src/content/01-home/01-introduction.mdx index 1ace8bc41..3fcb151b8 100644 --- a/apps/guide/src/content/01-home/01-introduction.mdx +++ b/apps/guide/src/content/01-home/01-introduction.mdx @@ -9,7 +9,7 @@ If you're reading this, it probably means you want to learn how to make a bot wi This guide will teach you things such as: - How to get a bot [up and running](/preparations/) from scratch; -- How to properly [create](/creating-your-bot/), [organize](/creating-your-bot/command-handling.md), and expand on your commands; +- How to properly [create](/creating-your-bot/), [organize](/creating-your-bot/handling-command-interactions.md), and expand on your commands; - In-depth explanations and examples regarding popular topics (e.g. [reactions](/popular-topics/reactions.md), [embeds](/popular-topics/embeds.md), [canvas](/popular-topics/canvas.md)); - Working with databases (e.g. [sequelize](/sequelize/) and [keyv](/keyv/)); - Getting started with [sharding](/sharding/); diff --git a/apps/guide/src/content/01-home/02-whats-new.mdx b/apps/guide/src/content/01-home/02-whats-new.mdx index 0cb3555fb..fa6c7e6a5 100644 --- a/apps/guide/src/content/01-home/02-whats-new.mdx +++ b/apps/guide/src/content/01-home/02-whats-new.mdx @@ -48,7 +48,7 @@ All content has been updated to use discord.js v14 syntax. The v13 version of th - Commando: Replaced with [Sapphire](https://sapphirejs.dev/docs/Guide/getting-started/getting-started-with-sapphire) - [Voice](/voice/): Rewritten to use the [_`@discordjs/voice`_](https://github.com/discordjs/discord.js/tree/main/packages/voice) package -- [Command handling](/creating-your-bot/command-handling.md/): Updated to use slash commands +- [Command handling](/creating-your-bot/handling-command-interactions.md/): Updated to use slash commands - Obsolete sections removed - _`client.on('message')`_ snippets updated to _`client.on(Events.InteractionCreate)`_ - [Message content became a privileged intent on August 31, 2022](https://support-dev.discord.com/hc/articles/4404772028055) diff --git a/apps/guide/src/content/03-creating-your-bot/01-configuration-files.mdx b/apps/guide/src/content/03-creating-your-bot/01-configuration-files.mdx index e164c71fe..4a672454f 100644 --- a/apps/guide/src/content/03-creating-your-bot/01-configuration-files.mdx +++ b/apps/guide/src/content/03-creating-your-bot/01-configuration-files.mdx @@ -7,7 +7,7 @@ category: Creating your bot Once you [add your bot to a server](../installations-and-preparations/adding-your-bot-to-servers), the next step is to start coding and get it online! Let's start by creating a config file to prepare the necessary values your client will need. -As explained in the ["What is a token, anyway?"](../installations-and-preparations/setting-up-a-bot-application.md#what-is-a-token-anyway) section, your token is essentially your bot's password, and you should protect it as best as possible. This can be done through a _`config.json`_ file or by using environment variables. +As explained in the ["What is a token, anyway?"](../installations-and-preparations/setting-up-a-bot-application#what-is-a-token-anyway) section, your token is essentially your bot's password, and you should protect it as best as possible. This can be done through a _`config.json`_ file or by using environment variables. Open your application in the [Discord Developer Portal](https://discord.com/developers/applications) and go to the "Bot" page to copy your token. diff --git a/apps/guide/src/content/03-creating-your-bot/03-adding-commands.mdx b/apps/guide/src/content/03-creating-your-bot/03-adding-commands.mdx index ea1993153..239c67cf1 100644 --- a/apps/guide/src/content/03-creating-your-bot/03-adding-commands.mdx +++ b/apps/guide/src/content/03-creating-your-bot/03-adding-commands.mdx @@ -22,8 +22,8 @@ Slash commands provide a huge number of benefits over manual message parsing, in For fully functional slash commands, there are three important pieces of code that need to be written. They are: 1. The individual command files, containing their definitions and functionality. - 2. The [command handler](command-handling.html), which dynamically reads the files and executes the commands. - 3. The [command deployment script](command-deployment.html), to register your slash commands with Discord so they appear in the interface. + 2. The [command handler](handling-command-interactions.html), which dynamically reads the files and executes the commands. + 3. The [command deployment script](registering-slash-commands.html), to register your slash commands with Discord so they appear in the interface. These steps can be done in any order, but **all are required** before the commands are fully functional. diff --git a/apps/guide/src/content/03-creating-your-bot/04-handling-command-interactions.mdx b/apps/guide/src/content/03-creating-your-bot/04-handling-command-interactions.mdx index 300451cc1..538e9014a 100644 --- a/apps/guide/src/content/03-creating-your-bot/04-handling-command-interactions.mdx +++ b/apps/guide/src/content/03-creating-your-bot/04-handling-command-interactions.mdx @@ -12,7 +12,7 @@ Unless your bot project is small, it's not a very good idea to have a single fil 1. The [individual command files](slash-commands), containing their definitions and functionality. 2. The command handler, which dynamically reads the files and executes the commands. - 3. The [command deployment script](command-deployment), to register your slash commands with Discord so they appear in the interface. + 3. The [command deployment script](registering-slash-commands), to register your slash commands with Discord so they appear in the interface. These steps can be done in any order, but **all are required** before the commands are fully functional. diff --git a/apps/guide/src/content/03-creating-your-bot/05-registering-slash-commands.mdx b/apps/guide/src/content/03-creating-your-bot/05-registering-slash-commands.mdx index c7c744881..eee585553 100644 --- a/apps/guide/src/content/03-creating-your-bot/05-registering-slash-commands.mdx +++ b/apps/guide/src/content/03-creating-your-bot/05-registering-slash-commands.mdx @@ -9,7 +9,7 @@ category: Creating your bot For fully functional slash commands, you need three important pieces of code: 1. The [individual command files](slash-commands), containing their definitions and functionality. - 2. The [command handler](command-handling), which dynamically reads the files and executes the commands. + 2. The [command handler](handling-command-interactions), which dynamically reads the files and executes the commands. 3. The command deployment script, to register your slash commands with Discord so they appear in the interface. These steps can be done in any order, but **all are required** before the commands are fully functional. @@ -152,4 +152,4 @@ You've successfully sent a response to a slash command! However, this is only th #### Resulting code - +