errorhandler
Heyo peeps!
I was wondering if anyone had tried creating an error handler that would catch every type of error and log it somewhere, as right now i have alot of TryCatch functions which simple make the code look ugly.
Eaxmple of what i mean that might have a better way of doing so:
(keep in mind that this code still requires me to use TryCatch)
1 Reply
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Post the full error stack trace, not just the top part!
- Show your code!
- Explain what exactly your issue is.
- Not a discord.js issue? Check out #useful-servers.