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
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.
Recent Announcements
No replies yet
Join the Discord to continue the conversation
S-IaF
Sapphire - Imagine a Framework
Sapphire is a next-gen object-oriented Discord.js bot framework.