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>
This commit is contained in:
Jiralite
2022-11-19 22:20:49 +00:00
committed by GitHub
parent fd4ba5eaba
commit 65bc0adbf4
2 changed files with 14 additions and 14 deletions

View File

@@ -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
*/
/**
@@ -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}
*/

View File

@@ -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}