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

[Discord] "Preemptive" rate limit check #52

Open
torlenor opened this issue Dec 27, 2020 · 0 comments
Open

[Discord] "Preemptive" rate limit check #52

torlenor opened this issue Dec 27, 2020 · 0 comments
Labels
enhancement New feature or request platform

Comments

@torlenor
Copy link
Owner

The Discord bot shall look at the X-RateLimit Header entries to prevent hitting the rate limit in the first place. The current handler only looks at the Headers when we are already rate limited and prevents sending events then.

Example of the header entries:

X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1470173023
X-RateLimit-Bucket: abcd1234

For further details see https://discordapp.com/developers/docs/topics/rate-limits#rate-limits

@torlenor torlenor added enhancement New feature or request platform labels Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform
Projects
None yet
Development

No branches or pull requests

1 participant