From cb26e4d9df295596b17a91a73c9d080dcd47afef Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Tue, 17 Dec 2024 15:12:06 +0100 Subject: [PATCH] Index: Use `.isStringSelectMenu()` instead of `.isSelectMenu()` Resolves a deprecation warning. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7b58994..be47cd5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -57,7 +57,7 @@ client.on(Events.InteractionCreate, async (interaction: Interaction) => { if (interaction.isButton()) commandHandler.handleButtonInteraction(interaction); - if (interaction.isSelectMenu()) commandHandler.handleSelectInteraction(interaction); + if (interaction.isStringSelectMenu()) commandHandler.handleSelectInteraction(interaction); }); client.on(Events.Error, e => { console.error("Discord client error!", e);