Rest
A rest manager for the client
Properties
.client
The client that instantiated this
type client = Client;
- See Client
.invalidRequests
Number of invalid requests done in the last 10 minutes
type invalidRequests = number | 0;
.invalidRequestsResetAt
When the invalid requests were last reset
type invalidRequestsResetAt = number;
.queue
A queue for the requests
type queue = AsyncQueue;
.rateLimits
An array of all the rate limit data received from the API
type rateLimits = RateLimitHandler[];
- See RateLimitHandler
.requests
All requests that have been made so far
type requests = APIRequest[];
- See APIRequest
.requestsPerSec
Number of requests done in the last second
type requestsPerSec = number | 0;
.requestsPerSecResetAt
When the requests per second were last reset
type requestPerSecResetAt = number;