docs(MessageSelectMenu): add link to Discord docs (#5984)

This commit is contained in:
Rodry
2021-07-01 09:57:25 +01:00
committed by GitHub
parent a08ce7dddb
commit f819416bac

View File

@@ -57,9 +57,16 @@ class MessageComponentInteraction extends Interaction {
this.webhook = new InteractionWebhook(this.client, this.applicationID, this.token);
}
/**
* Raw message components from the API
* * APIMessageButton
* * APIMessageSelectMenu
* @typedef {APIMessageButton|APIMessageSelectMenu} APIMessageActionRowComponent
*/
/**
* The component which was interacted with
* @type {?(MessageActionRowComponent|Object)}
* @type {?(MessageActionRowComponent|APIMessageActionRowComponent)}
* @readonly
*/
get component() {
@@ -95,3 +102,13 @@ class MessageComponentInteraction extends Interaction {
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}
*/