Expand description
§twilight-http-ratelimiting
Ratelimiting functionality for HTTP requests.
Discord ratelimits requests to the HTTP API both globally and per-route. For more information on the specifics, please take a look at Discord’s documentation.
Structs§
- Bucket
- Rate limit information for one or more paths from previous
RateLimitHeaders. - Endpoint
- Rate limited endpoint.
- Maybe
Permit Future - Future that completes when a permit is ready or cancelled.
- Permit
- Permit to send a Discord HTTP API request to the acquired endpoint.
- Permit
Future - Future that completes when a permit is ready.
- Rate
Limit Headers - Parsed user response rate limit headers.
- Rate
Limiter - Discord HTTP client API rate limiter.
Enums§
Constants§
- GLOBAL_
LIMIT_ PERIOD - Duration from the first globally limited request until the remaining count resets to the global limit count.