Skip to content

Commit

Permalink
Index: Use .isStringSelectMenu() instead of .isSelectMenu()
Browse files Browse the repository at this point in the history
Resolves a deprecation warning.
  • Loading branch information
gmta committed Dec 17, 2024
1 parent f4d6074 commit b1fc810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b1fc810

Please sign in to comment.