Change isSelectMenu to isStringSelectMenu

This commit is contained in:
Ninjdai 2023-02-25 10:15:28 +01:00
parent 52ff0aeea0
commit ddc2f5ba8b

View File

@ -29,7 +29,7 @@ module.exports = {
}
} else if (interaction.isButton()) {
buttonList[interaction.customId.split("_")[0]] ? buttonList[interaction.customId.split("_")[0]].execute(interaction, client) : interaction.reply({ content: "Si vous rencontrez cette erreur, merci de contacter CoolMan#4094 !", ephemeral: true });
} else if (interaction.isSelectMenu()) {
} else if (interaction.isStringSelectMenu()) {
selectMenuList[interaction.customId.split("_")[0]].execute(interaction, client);
} else if (interaction.isModalSubmit()) {
modalList[interaction.customId.split("_")[0]] ? modalList[interaction.customId.split("_")[0]].execute(interaction, client) : interaction.reply({ content: "Si vous rencontrez cette erreur, merci de contacter CoolMan#4094 !", ephemeral: true });