Skip to content

Commit b1fc810

Browse files
committed
Index: Use .isStringSelectMenu() instead of .isSelectMenu()
Resolves a deprecation warning.
1 parent f4d6074 commit b1fc810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ client.on(Events.InteractionCreate, async (interaction: Interaction) => {
5757

5858
if (interaction.isButton()) commandHandler.handleButtonInteraction(interaction);
5959

60-
if (interaction.isSelectMenu()) commandHandler.handleSelectInteraction(interaction);
60+
if (interaction.isStringSelectMenu()) commandHandler.handleSelectInteraction(interaction);
6161
});
6262
client.on(Events.Error, e => {
6363
console.error("Discord client error!", e);

0 commit comments

Comments
 (0)