Skip to content

Commit

Permalink
Fix error to be more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Sep 16, 2024
1 parent 7ce859e commit 9962bfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/handler/commandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,10 @@ export const handleInteractionEvent = async (
if (interaction.isCommand()) {
return commandInteractionHandler(interaction, context);
}

if (interaction.isAutocomplete()) {
return autocompleteInteractionHandler(interaction, context);
}

throw new Error("Not supported");
throw new Error(`Not type not supported: ${interaction.type}`);
};

export const messageCommandHandler = async (
Expand Down

0 comments on commit 9962bfb

Please sign in to comment.