Skip to content

Commit 65bc0ad

Browse files
docs: Fix message action row components (#8819)
* docs: fix message action row components * docs: remove unused external links Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent fd4ba5e commit 65bc0ad

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/discord.js/src/structures/MessageComponentInteraction.js

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,15 @@ class MessageComponentInteraction extends BaseInteraction {
6666
}
6767

6868
/**
69-
* Raw message components from the API
70-
* * APIMessageButton
71-
* * APIMessageSelectMenu
72-
* @typedef {APIMessageButton|APIMessageSelectMenu} APIMessageActionRowComponent
69+
* Components that can be placed in an action row for messages.
70+
* * ButtonComponent
71+
* * StringSelectMenuComponent
72+
* * UserSelectMenuComponent
73+
* * RoleSelectMenuComponent
74+
* * MentionableSelectMenuComponent
75+
* * ChannelSelectMenuComponent
76+
* @typedef {ButtonComponent|StringSelectMenuComponent|UserSelectMenuComponent|
77+
* RoleSelectMenuComponent|MentionableSelectMenuComponent|ChannelSelectMenuComponent} MessageActionRowComponent
7378
*/
7479

7580
/**
@@ -100,13 +105,3 @@ class MessageComponentInteraction extends BaseInteraction {
100105
InteractionResponses.applyToClass(MessageComponentInteraction);
101106

102107
module.exports = MessageComponentInteraction;
103-
104-
/**
105-
* @external APIMessageSelectMenu
106-
* @see {@link https://discord.com/developers/docs/interactions/message-components#select-menu-object}
107-
*/
108-
109-
/**
110-
* @external APIMessageButton
111-
* @see {@link https://discord.com/developers/docs/interactions/message-components#button-object}
112-
*/

packages/discord.js/src/util/APITypes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@
9898
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIMessage}
9999
*/
100100

101+
/**
102+
* @external APIMessageActionRowComponent
103+
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#APIMessageActionRowComponent}
104+
*/
105+
101106
/**
102107
* @external APIMessageComponent
103108
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#APIMessageComponent}

0 commit comments

Comments
 (0)