Reference
Interfaces
Requestoptions

Interface: RequestOptions

Properties

auth?

optional auth: boolean

Whether to send the authorization token or not (NOTE if the alwaysSendAuthorizationHeader option is true, the token will be sent anyway)

Defined in

src/core/rest/RequestManager.ts:40 (opens in a new tab)


body?

optional body: any

The HTTP request body.

Defined in

src/core/rest/RequestManager.ts:35 (opens in a new tab)


endpoint

endpoint: string

The Discord API endpoint, the base URL always will be (https://discord.com/api/v{version}), so you only need to specify the endpoint, EXAMPLE: /users, /channels, etc...

Defined in

src/core/rest/RequestManager.ts:28 (opens in a new tab)


headers?

optional headers: object

The HTTP request headers.

Index Signature

[key: string]: string

Defined in

src/core/rest/RequestManager.ts:45 (opens in a new tab)


method

method: HTTP_METHODS

The HTTP method that will be used to make the request.

Defined in

src/core/rest/RequestManager.ts:23 (opens in a new tab)