Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index: Use .isStringSelectMenu() instead of .isSelectMenu() #30

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Index: Use .isStringSelectMenu() instead of .isSelectMenu()
Resolves a deprecation warning.
  • Loading branch information
gmta committed Dec 17, 2024
commit cb26e4d9df295596b17a91a73c9d080dcd47afef
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
Loading