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

Treat retry_after on API response as seconds rather than milliseconds. #349

Merged
merged 2 commits into from
May 2, 2022

Conversation

buhanec
Copy link

@buhanec buhanec commented May 1, 2022

This should fix #348 - looking at the Discord API rate limits docs, we can see:

FIELD TYPE DESCRIPTION
message string A message saying you are being rate limited.
retry_after float The number of seconds to wait before submitting another request.
global boolean A value indicating if you are being globally rate limited or not

@victornpb
Copy link
Owner

Sorry about the conflict with the new version. Do you still want to update your branch, or do you want me to make the changes myself?

@buhanec
Copy link
Author

buhanec commented May 2, 2022

Done!

@victornpb victornpb merged commit 1e0fcb4 into victornpb:master May 2, 2022
@victornpb victornpb added is-bug Something isn't working bug fixed labels May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] trys to delete 1 message 20 times but doesnt
2 participants