dcord.api.ratelimit

Utilities for tracking and managing rate limits.

Members

Classes

RateLimiter
class RateLimiter

RateLimiter provides an interface for rate limiting HTTP Requests.

Functions

randomBackoff
Duration randomBackoff(int low, int high)

Return a random backoff duration (by default between 0.5 and 3 seconds)

Structs

RateLimitState
struct RateLimitState

Stores the rate limit state for a given bucket.

Meta