Internal
Create a rest bucket.
The bucket's ID.
The bucket's unique RestBucketHash hash.
The RestMajorParameter major parameter associated with the bucket.
The rest manager the bucket is bound to.
The number of allowed requests per a rate limit interval.
Readonly
bucketThe bucket's unique RestBucketHash hash.
Readonly
idThe bucket's ID.
Readonly
majorThe RestMajorParameter major parameter associated with the bucket.
The rest manager the bucket is bound to.
The current number of requests left.
A unix millisecond timestamp at which the rate limit resets.
Readonly
systemThe system string used for logging.
Static
Readonly
RATELIMIT_Rest rate limit headers.
Headers are lowercase to allow for easier comparison (receivedHeader.toLowerCase() === REST_RATELIMIT_HEADERS.HEADER
), as some http libraries return headers in all uppercase or all lowercase.
If the bucket is currently making a request.
Get information on the bucket's current rate limit restrictions.
Make a rest request with this bucket's rate limits.
The request's method.
The requests's route, relative to the base Discord API URL. (Example: /channels/123456789000000000
)
The request's route hash.
Request options.
Response data.
A rest bucket. Used for rate limiting requests.