From ddc2f5ba8b2675b675ff8ec7cf7085a8256a2023 Mon Sep 17 00:00:00 2001 From: Ninjdai Date: Sat, 25 Feb 2023 10:15:28 +0100 Subject: [PATCH] Change isSelectMenu to isStringSelectMenu --- events/interactionCreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 64b0112..5771385 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -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 });