Skip to content
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

Interaction error handling and logging #32

Merged
merged 3 commits into from
Mar 24, 2024

Conversation

stifskere
Copy link
Contributor

Features

With this PR now, the interactions and events may throw errors and the bot won't stop, it will instead log the error in the console and in the case of being an interaction it will notify the user that the interaction handler caught an error.

image
image
image

Must do before merging

in /modules/utils/logger.ts there is a function at the end, when an error is caught, that function will be called.

image

This was left in blank because the decision of who will be notified/where will it be notified must be taken first.

@alexcraviotto alexcraviotto merged commit 6b0f3a2 into DiscordSaaSBot:dev Mar 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants