-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Handle discord.Forbidden 90001 errors by default in create_task()
#177
Conversation
✅ Deploy Preview for bot-core ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should bump the version in pyproject.toml and write a changelog entry too
What's the benefit of this over adding the callback to the returned task? |
EDIT: The initial idea was for it to automatically add the I think this means that the actual |
446d1da
to
763c92f
Compare
done_callbacks
param to create_task
create_task()
8cbd980
to
d1bd136
Compare
…wrapper that handles 90001 errors
87270e6
to
952dc3e
Compare
Adds a utility for handling of
discord.Forbidden
90001 errors (caused by attempting to add a reaction to a message where the message author has blocked the bot) and uses it in all created schedules.Approved by @ChrisLovering on Discord, so there's no github issue.