mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
feat(MessageSelectMenu): droppybois (#5692)
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
This commit is contained in:
21
src/structures/SelectMenuInteraction.js
Normal file
21
src/structures/SelectMenuInteraction.js
Normal 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;
|
||||
Reference in New Issue
Block a user