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

Don't follow up or double log on "Unknown interaction" failures #333

Open
kevinlul opened this issue Jun 10, 2023 · 0 comments
Open

Don't follow up or double log on "Unknown interaction" failures #333

kevinlul opened this issue Jun 10, 2023 · 0 comments

Comments

@kevinlul
Copy link
Contributor

This fix applies to Emcee as well.

Sometimes Discord takes too long to send the bot the interaction, so even if the bot immediately replies, it is past the three-second window and thus gets Unknown interaction. The error handler attempts to reply or follow up on any exception when running a command, but this will also fail since the interaction has expired. This ends up double-logging "Unknown interaction". Do not attempt to follow up when the exception type is "Unknown interaction".

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

No branches or pull requests

1 participant