Class: RequestReponse
Represents a response from Discord API.
Constructors
new RequestReponse()
new RequestReponse(
data,statusText,statusCode,request,headers):RequestReponse
Parameters
| Parameter | Type | Description |
|---|---|---|
data | any | Response body data. |
statusText | string | Response status text. |
statusCode | null | number | Response status code. |
request | RequestOptions | The options sent to Discord API. |
headers | IncomingHttpHeaders | Headers received from Discord API. |
Returns
Defined in
src/core/rest/RequestManager.ts:68 (opens in a new tab)
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
data | public | any | Response body data. | src/core/rest/RequestManager.ts:74 (opens in a new tab) |
headers | public | IncomingHttpHeaders | Headers received from Discord API. | src/core/rest/RequestManager.ts:94 (opens in a new tab) |
request | public | RequestOptions | The options sent to Discord API. | src/core/rest/RequestManager.ts:89 (opens in a new tab) |
statusCode | public | null | number | Response status code. | src/core/rest/RequestManager.ts:84 (opens in a new tab) |
statusText | public | string | Response status text. | src/core/rest/RequestManager.ts:79 (opens in a new tab) |