-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Centralising errors catching #1145
Comments
Hello! you can create a Exception Filter passaing the |
@carlonicora Thank you for question! |
@NedcloarBR thanks for the reply. I have created a specific exception filter which traps the call; however I have two issues:
Am I doing something wrong in here, or are these two edge cases?
thanks EDIT: forgot to add I have this
in my main.ts EDIT 2: I realised one of my issues: I can create a filter for my own error type to fix the issue 2, but issue 1 is still there |
You can get host arguments. |
Btw, from arguments host you can get discovery item to create own typeguard of commands, events, modals and etc. |
What is your question?
Hello,
First and foremost thanks for releasing this, much appreciated!
I am building a new version of a bot I previously created with discord.js. One of the features I previously used was a centralised error catching for all my slash commands. This includes old commands that I removed, but are still pending in the guild.
Is there a place where to create this catchall for errors?
Thanks
The text was updated successfully, but these errors were encountered: