Skip to content

Commit

Permalink
fix wrong reply on try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Jun 15, 2024
1 parent 663dce7 commit 8b5915a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/services/discord/modules/commands/developer/SQL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ export const SlashSQLCommand: SlashCommand = {
break;
}
} catch (err) {
await ctx.reply(err.message);
if (ctx.deferred) {
await ctx.followUp(err.message);
} else {
await ctx.reply(EphemeralResponse(err.message));
}
}
},
};

0 comments on commit 8b5915a

Please sign in to comment.