feat: better command error reporting

This commit is contained in:
TresAbhi committed 2023-05-06 18:03:37 +00:00
1 parent 5ef1f87236
commit 92acbc8e95
16 files changed
+668 -31

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ import { client } from '../index.js';
export default async function wargamingError(
interaction: ChatInputCommandInteraction<CacheType>,
error: Error,
command: string,
) {
await interaction.editReply({
embeds: [
@@ -21,5 +22,5 @@ export default async function wargamingError(
});
console.log(`Wargaming returned an error`);
handleError(error, client);
handleError(error, client, command);
}