diff options
Diffstat (limited to 'node_modules/discord.js/src/structures/StringSelectMenuInteraction.js')
-rw-r--r-- | node_modules/discord.js/src/structures/StringSelectMenuInteraction.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/discord.js/src/structures/StringSelectMenuInteraction.js b/node_modules/discord.js/src/structures/StringSelectMenuInteraction.js new file mode 100644 index 0000000..1db8c28 --- /dev/null +++ b/node_modules/discord.js/src/structures/StringSelectMenuInteraction.js @@ -0,0 +1,21 @@ +'use strict'; + +const MessageComponentInteraction = require('./MessageComponentInteraction'); + +/** + * Represents a {@link ComponentType.StringSelect} select menu interaction. + * @extends {MessageComponentInteraction} + */ +class StringSelectMenuInteraction extends MessageComponentInteraction { + constructor(client, data) { + super(client, data); + + /** + * The values selected + * @type {string[]} + */ + this.values = data.data.values ?? []; + } +} + +module.exports = StringSelectMenuInteraction; |