Reference
Classes
Requestreponse

Class: RequestReponse

Represents a response from Discord API.

Constructors

new RequestReponse()

new RequestReponse(data, statusText, statusCode, request, headers): RequestReponse

Parameters

ParameterTypeDescription
dataanyResponse body data.
statusTextstringResponse status text.
statusCodenull | numberResponse status code.
requestRequestOptionsThe options sent to Discord API.
headersIncomingHttpHeadersHeaders received from Discord API.

Returns

RequestReponse

Defined in

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

Properties

PropertyModifierTypeDescriptionDefined in
datapublicanyResponse body data.src/core/rest/RequestManager.ts:74 (opens in a new tab)
headerspublicIncomingHttpHeadersHeaders received from Discord API.src/core/rest/RequestManager.ts:94 (opens in a new tab)
requestpublicRequestOptionsThe options sent to Discord API.src/core/rest/RequestManager.ts:89 (opens in a new tab)
statusCodepublicnull | numberResponse status code.src/core/rest/RequestManager.ts:84 (opens in a new tab)
statusTextpublicstringResponse status text.src/core/rest/RequestManager.ts:79 (opens in a new tab)