Global Error Handler

Hello, I want to put a global error handler system on my Discord bot. I would like this system to respond to interactions if there are any. As well as sending a log embed to a chat room. To do this, I used different listeners. On Sapphire events, e.g., Events.ChatInputCommandError It works pretty well. I was able to create this error handler. However, I was wondering if it was possible to have a more global handling to also intercept Discord JS or node errors.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?