Skip to content

Commit

Permalink
docs: Fix message action row components (#8819)
Browse files Browse the repository at this point in the history
* docs: fix message action row components

* docs: remove unused external links

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] authored Nov 19, 2022
1 parent fd4ba5e commit 65bc0ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
23 changes: 9 additions & 14 deletions packages/discord.js/src/structures/MessageComponentInteraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ class MessageComponentInteraction extends BaseInteraction {
}

/**
* Raw message components from the API
* * APIMessageButton
* * APIMessageSelectMenu
* @typedef {APIMessageButton|APIMessageSelectMenu} APIMessageActionRowComponent
* Components that can be placed in an action row for messages.
* * ButtonComponent
* * StringSelectMenuComponent
* * UserSelectMenuComponent
* * RoleSelectMenuComponent
* * MentionableSelectMenuComponent
* * ChannelSelectMenuComponent
* @typedef {ButtonComponent|StringSelectMenuComponent|UserSelectMenuComponent|
* RoleSelectMenuComponent|MentionableSelectMenuComponent|ChannelSelectMenuComponent} MessageActionRowComponent
*/

/**
Expand Down Expand Up @@ -100,13 +105,3 @@ class MessageComponentInteraction extends BaseInteraction {
InteractionResponses.applyToClass(MessageComponentInteraction);

module.exports = MessageComponentInteraction;

/**
* @external APIMessageSelectMenu
* @see {@link https://discord.com/developers/docs/interactions/message-components#select-menu-object}
*/

/**
* @external APIMessageButton
* @see {@link https://discord.com/developers/docs/interactions/message-components#button-object}
*/
5 changes: 5 additions & 0 deletions packages/discord.js/src/util/APITypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIMessage}
*/

/**
* @external APIMessageActionRowComponent
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#APIMessageActionRowComponent}
*/

/**
* @external APIMessageComponent
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#APIMessageComponent}
Expand Down

0 comments on commit 65bc0ad

Please sign in to comment.