Optional
options: Partial<RESTOptions>Private
#privateProtected
Readonly
[brandThis field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter
The Agent for all requests performed by this manager.
Readonly
cdnPrivate
Internal
createCreates a new rate limit handler from a hash, based on the hash and the major parameter
The hash for the route
The major parameter for this handler
The promise used to wait out the global rate limit
The number of requests remaining in the global bucket
The timestamp at which the global bucket resets
Private
handlerReadonly
handlersRequest handlers created from the bucket hash and the major parameters
Private
hashReadonly
hashesAPI bucket hashes that are cached from provided routes
Readonly
optionsPrivate
resolveFormats the request data to a usable format for fetch
The request data
Private
setupStatic
Private
Internal
generateGenerates route data for an endpoint:method
The raw endpoint to generalize
The HTTP method this endpoint is called without
Runs a delete request from the api
The full route to query
Optional
options: RequestDataOptional request options
Rest
...args: InternalGetAsyncEventEmitterEventParameters<AsyncEventEmitter<RestEvents>, K, RestEvents>Rest
...args: InternalGetAsyncEventEmitterEventParameters<AsyncEventEmitter<RestEvents>, K, RestEvents>Runs a get request from the api
The full route to query
Optional
options: RequestDataOptional request options
Runs a patch request from the api
The full route to query
Optional
options: RequestDataOptional request options
Runs a post request from the api
The full route to query
Optional
options: RequestDataOptional request options
Runs a put request from the api
The full route to query
Optional
options: RequestDataOptional request options
Queues a request to be sent
All the information needed to make a request
The response from the api request
Optional
event: KOptional
event: string | symbolRuns a request from the api
Request options
Static
listenerStatic
onOptional
options: AbortableMethodsOptional
options: AbortableMethodsStatic
onceOptional
options: AbortableMethodsOptional
options: AbortableMethodsGenerated using TypeDoc
Represents the class that manages handlers for endpoints