mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
fix(SelectMenuInteraction): set values to empty array if not provided (#6045)
This commit is contained in:
@@ -14,7 +14,7 @@ class SelectMenuInteraction extends MessageComponentInteraction {
|
||||
* 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;
|
||||
this.values = data.data.values ?? [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user