Skip to content

Commit

Permalink
エラーをlogに残すように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
minarin0179 committed Nov 27, 2023
1 parent daa5765 commit 96fb08a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/events/interactionCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ export default new Event(Events.InteractionCreate, async interaction => {
if (!component) return;
await component.execute({ client, interaction, args });
}
} catch (e: any) {
await showError(interaction, e).catch(console.log);
} catch (error: any) {
await showError(interaction, error).catch(console.log);
console.log({ interaction, error });
}
});

Expand Down

0 comments on commit 96fb08a

Please sign in to comment.