Exception while command handling leads to crash #40
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AnthonyKwon/chattybot#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected Behavior
Bot should log error and continue running on Discord API error while running interaction.
Actual Behavior
Bot crashes when Discord API Error thrown while running interaction.
Possible Solution
When Error thrown while running interaction, app catches it and tries to log it. While logging, app tries to show message to Discord by interaction reply. However, when Discord API Error is thrown, interaction can't be used anymore. So, application will crash when tries to use interaction.
We should not use interaction here, or we need to detect if Error is Discord API Error for at least.