Represents an API error returned by Discord
Extends
ErrorConstructs a new instance of the
DiscordAPIError class| Name | Type | Optional | Description |
|---|---|---|---|
| rawError | DiscordErrorData | OAuthErrorData | No | The error reported by Discord |
| code | number | string | No | The error code reported by Discord |
| status | number | No | The status code of the response |
| method | string | No | The method of the request that erred |
| url | string | No | The url of the request that erred |
| bodyData | Pick<InternalRequest, 'body' | 'files'> | No | The unparsed data for the request that errored |