Skip to content

Commit

Permalink
Reply to commands in case of an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Delemangi committed Feb 9, 2025
1 parent 2b192a4 commit b48e978
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interactions/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const handleChatInputCommand = async (
try {
await command.execute(interaction);
} catch (error) {
await interaction.editReply(commandErrors.commandError);
logger.error(
logErrorFunctions.chatInputInteractionError(interaction, error),
);
Expand Down

0 comments on commit b48e978

Please sign in to comment.