declare class REST extends EventEmitter
readonlyCDN cdn :
readonlyRequestManager requestManager :
(<K extends keyof RestEvents>(event: K, ...args: RestEvents[K]) => boolean) & (<S extends string | symbol>(event: Exclude<S, keyof RestEvents>, ...args: any[]) => boolean) emit :
Inherited from: REST
(<K extends keyof RestEvents>(event: K, listener: (...args: RestEvents[K]) => void) => this) & (<S extends string | symbol>(event: Exclude<S, keyof RestEvents>, listener: (...args: any[]) => void) => this) off :
Inherited from: REST
(<K extends keyof RestEvents>(event: K, listener: (...args: RestEvents[K]) => void) => this) & (<S extends string | symbol>(event: Exclude<S, keyof RestEvents>, listener: (...args: any[]) => void) => this) on :
Inherited from: REST
(<K extends keyof RestEvents>(event: K, listener: (...args: RestEvents[K]) => void) => this) & (<S extends string | symbol>(event: Exclude<S, keyof RestEvents>, listener: (...args: any[]) => void) => this) once :
Inherited from: REST
(<K extends keyof RestEvents>(event?: K) => this) & (<S extends string | symbol>(event?: Exclude<S, keyof RestEvents>) => this) removeAllListeners :
Inherited from: REST
deletefullRoute: RouteLikeoptions?: RequestData) : Promise<unknown> (
fullRoute: RouteLike
options?: RequestData
Runs a delete request from the api
getfullRoute: RouteLikeoptions?: RequestData) : Promise<unknown> (
fullRoute: RouteLike
options?: RequestData
Runs a get request from the api
getAgentDispatcher | null () :
Gets the agent set for this instance
patchfullRoute: RouteLikeoptions?: RequestData) : Promise<unknown> (
fullRoute: RouteLike
options?: RequestData
Runs a patch request from the api
postfullRoute: RouteLikeoptions?: RequestData) : Promise<unknown> (
fullRoute: RouteLike
options?: RequestData
Runs a post request from the api
putfullRoute: RouteLikeoptions?: RequestData) : Promise<unknown> (
fullRoute: RouteLike
options?: RequestData
Runs a put request from the api
rawoptions: InternalRequest) : Promise<Dispatcher.ResponseData> (
options: InternalRequest
Runs a request from the API, yielding the raw Response object
requestoptions: InternalRequest) : Promise<unknown> (
options: InternalRequest
Runs a request from the api
setAgentagent: Dispatcher) : this (
agent: Dispatcher
Sets the default agent to use for requests performed by this instance
setTokentoken: string) : this (
token: string
Sets the authorization token that should be used for requests