Discord.js - StringSelectMenu

This commit is contained in:
Christer Warén
2023-05-24 00:48:29 +03:00
parent 92af0f71b2
commit 503f4b7cca
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ module.exports = {
});
console.error(error);
}
} else if (interaction.isSelectMenu() || interaction.isButton()){
} else if (interaction.isStringSelectMenu() || interaction.isButton()){
const commandName = interaction.customId;
const command = client.commands.get(commandName);
if (!command) return;