feat(MessageSelectMenu): droppybois (#5692)

Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
monbrey
2021-06-25 07:25:16 +10:00
committed by GitHub
parent d984ac9d09
commit e5fcf0bee5
11 changed files with 336 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
'use strict';
const MessageComponentInteraction = require('./MessageComponentInteraction');
/**
* Represents a select menu interaction.
* @extends {MessageComponentInteraction}
*/
class SelectMenuInteraction extends MessageComponentInteraction {
constructor(client, data) {
super(client, data);
/**
* The values selected, if the component which was interacted with was a select menu
* @type {string[]}
*/
this.values = this.componentType === 'SELECT_MENU' ? data.data.values : null;
}
}
module.exports = SelectMenuInteraction;