From 65bc0adbf4d7870d33b92585ca18f964f24bc84e Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:20:49 +0000 Subject: [PATCH] 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> --- .../structures/MessageComponentInteraction.js | 23 ++++++++----------- packages/discord.js/src/util/APITypes.js | 5 ++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/discord.js/src/structures/MessageComponentInteraction.js b/packages/discord.js/src/structures/MessageComponentInteraction.js index 9ffa99354481..47b31e04c12c 100644 --- a/packages/discord.js/src/structures/MessageComponentInteraction.js +++ b/packages/discord.js/src/structures/MessageComponentInteraction.js @@ -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} - */ diff --git a/packages/discord.js/src/util/APITypes.js b/packages/discord.js/src/util/APITypes.js index 553d6aeb3e39..648ac5882880 100644 --- a/packages/discord.js/src/util/APITypes.js +++ b/packages/discord.js/src/util/APITypes.js @@ -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}