Skip to content
This repository was archived by the owner on Oct 5, 2025. It is now read-only.

Commit 9849f78

Browse files
committed
chore: rename from message components to interactive components
1 parent 357998d commit 9849f78

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

guide/additional-info/changes-in-v13.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ In addition to the `interactionCreate` event covered in the above guide, this re
7575
discord.js now has support for message components!
7676
This introduces the `MessageActionRow`, `MessageButton`, and `MessageSelectMenu` classes, as well as associated interactions and collectors.
7777

78-
Refer to the [message components](/message-components/buttons.md) section of this guide to get started.
78+
Refer to the [message components](/interactive-components/buttons.md) section of this guide to get started.
7979

8080
## Threads
8181

@@ -1136,7 +1136,7 @@ A Collection of Roles which are managed by the integration.
11361136

11371137
Provides gateway support for slash command and message component interactions.
11381138

1139-
For more information refer to the [slash commands](/interactions/slash-commands.md#replying-to-slash-commands) and [message components](/message-components/buttons) sections of the guide.
1139+
For more information refer to the [slash commands](/interactions/slash-commands.md#replying-to-slash-commands) and [message components](/interactive-components/buttons) sections of the guide.
11401140

11411141
### InteractionCollector
11421142

guide/creating-your-bot/command-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ You've successfully sent a response to a slash command! However, this is only th
134134
* utilising the different [Response methods](/slash-commands/response-methods.md) that can be used for slash commands.
135135
* expanding on these examples with additional validated option types in [Advanced command creation](/slash-commands/advanced-creation.md).
136136
* adding formatted [Embeds](/popular-topics/embeds.md) to your responses.
137-
* enhancing the command functionality with [Buttons](/message-components/buttons) and [Select Menus](/message-components/select-menus).
137+
* enhancing the command functionality with [Buttons](/interactive-components/buttons) and [Select Menus](/interactive-components/select-menus).
138138
* prompting the user for more information with [Modals](/interactions/modals.md).
139139

140140
#### Resulting code
File renamed without changes.

guide/message-components/buttons.md renamed to guide/interactive-components/buttons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The first type of interactive component we'll cover creating is a Button. Buttons are available in a variety of styles and can be used to provide permanent interfaces, temporary confirmation workflows, and other forms of additional interaction with your bot.
44

55
::: tip
6-
This page is a follow-up to the [slash commands](/slash-commands/advanced-creation) section and [action rows](/message-components/action-rows) page. Please carefully read those pages first so that you can understand the methods used here.
6+
This page is a follow-up to the [slash commands](/slash-commands/advanced-creation) section and [action rows](/interactive-components/action-rows) page. Please carefully read those pages first so that you can understand the methods used here.
77
:::
88

99
## Building buttons
@@ -169,4 +169,4 @@ const button = new ButtonBuilder()
169169
170170
#### Next steps
171171
172-
That's everything you need to know about building and sending buttons! From here you can learn about the other type of message component, [select menus](/message-components/select-menus), or have your bot start listening to [component interactions](/message-components/interactions) from your buttons.
172+
That's everything you need to know about building and sending buttons! From here you can learn about the other type of message component, [select menus](/interactive-components/select-menus), or have your bot start listening to [component interactions](/interactive-components/interactions) from your buttons.

guide/message-components/interactions.md renamed to guide/interactive-components/interactions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Every button click or select menu selection on a component sent by your bot fire
77
- Creating a permanent component handler in the <DocsLink path="Client:Class#interactionCreate" /> event.
88

99
::: tip
10-
This page is a follow-up to the [slash commands](/slash-commands/advanced-creation) section, and assumes you have created either [buttons](/message-components/buttons) or [select menus](/message-components/select-menus) as detailed in this guide. Please carefully read those pages first so that you can understand the methods used here.
10+
This page is a follow-up to the [slash commands](/slash-commands/advanced-creation) section, and assumes you have created either [buttons](/interactive-components/buttons) or [select menus](/interactive-components/select-menus) as detailed in this guide. Please carefully read those pages first so that you can understand the methods used here.
1111
:::
1212

1313
## Responding to component interactions
@@ -32,7 +32,7 @@ Once `deferUpdate()` has been called, future messages can be sent by calling `fo
3232

3333
## Awaiting components
3434

35-
If you followed our [buttons](/message-components/buttons) guide, the confirmation workflow for the `ban` command is a good example of a situation where your bot is expecting to receive a single response, from either the Confirm or Cancel button.
35+
If you followed our [buttons](/interactive-components/buttons) guide, the confirmation workflow for the `ban` command is a good example of a situation where your bot is expecting to receive a single response, from either the Confirm or Cancel button.
3636

3737
Begin by adding `withResponse` to the options, and then calling <DocsLink path="Message:Class#awaitMessageComponent" type="method" /> on the message. This method returns a [Promise](/additional-info/async-await.md) that resolves when any interaction passes its filter (if one is provided), or throws if none are received before the timeout. If this happens, remove the components and notify the user.
3838

@@ -82,7 +82,7 @@ try {
8282

8383
## Component collectors
8484

85-
For situations where you want to collect multiple interactions, the Collector approach is better suited than awaiting singular interactions. Following on from the [select menus](/message-components/select-menus) guide, you're going to extend that example to use an <DocsLink path="InteractionCollector:Class"/> to listen for multiple <DocsLink path="StringSelectMenuInteraction:Class"/>s.
85+
For situations where you want to collect multiple interactions, the Collector approach is better suited than awaiting singular interactions. Following on from the [select menus](/interactive-components/select-menus) guide, you're going to extend that example to use an <DocsLink path="InteractionCollector:Class"/> to listen for multiple <DocsLink path="StringSelectMenuInteraction:Class"/>s.
8686

8787
Begin by adding `withResponse` to the options, and then calling <DocsLink path="Message:Class#createMessageComponentCollector" type="method" /> on this instance. This method returns an InteractionCollector that will fire its <DocsLink path="InteractionCollector:Class#collect" /> event whenever an interaction passes its filter (if one is provided).
8888

guide/message-components/select-menus.md renamed to guide/interactive-components/select-menus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Select menus are one of the `MessageComponent` classes, which can be sent via messages or interaction responses.
44

55
::: tip
6-
This page is a follow-up to the [slash commands](/slash-commands/advanced-creation.md) section and [action rows](/message-components/action-rows.md) page. Please carefully read those pages first so that you can understand the methods used here.
6+
This page is a follow-up to the [slash commands](/slash-commands/advanced-creation.md) section and [action rows](/interactive-components/action-rows.md) page. Please carefully read those pages first so that you can understand the methods used here.
77
:::
88

99
## Building string select menus

guide/slash-commands/permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const data = new SlashCommandBuilder()
5151
.setDefaultMemberPermissions(PermissionFlagsBits.KickMembers);
5252
```
5353

54-
In reality, you'll probably want to have an additional confirmation step before a ban actually executes. Check out the [button components section](/message-components/buttons) of the guide to see how to add confirmation buttons to your command responses, and listen to button clicks.
54+
In reality, you'll probably want to have an additional confirmation step before a ban actually executes. Check out the [button components section](/interactive-components/buttons) of the guide to see how to add confirmation buttons to your command responses, and listen to button clicks.
5555

5656
## Contexts
5757

guide/whats-new.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ All content has been updated to use discord.js v14 syntax. The v13 version of th
4545

4646
- [Updating from v13 to v14](/additional-info/changes-in-v14.md): A list of the changes from discord.js v13 to v14
4747
- [Slash commands](/slash-commands/advanced-creation.md): Registering, replying to slash commands and permissions
48-
- [Buttons](/message-components/buttons): Building, sending, and receiving buttons
49-
- [Select menus](/message-components/select-menus): Building, sending, and receiving select menus
48+
- [Buttons](/interactive-components/buttons): Building, sending, and receiving buttons
49+
- [Select menus](/interactive-components/select-menus): Building, sending, and receiving select menus
5050
- [Threads](/popular-topics/threads.md): Creating and managing threads
5151
- [Formatters](/popular-topics/formatters.md): A collection of formatters to use with your bot
5252

0 commit comments

Comments
 (0)