DiscordError

DiscordError extends Erroropen in new window

A class representing a Discord error

Properties

.attachments

The attachments sent in the request

type attachments = Attachment[] | undefined;

.body

The body sent in the request, if any

type body = Json | undefined;

.headers

Headers sent in the request

type headers = OutgoingHttpHeaders;

.method

Method used in the request

type method = RequestMethod;

.path

Path of the request

type path = Path;

.query

The query of the request

type query = string | undefined;

.status

The status message received from the API

type status = string;

.statusCode

The status code received from this request

type statusCode = number;

Constructor

new DiscordError(request, res);
ParameterDefaultDescriptionTypeRequired
request-The request sentAPIRequesttrue
res-The response receivedResponsetrue
Last Updated:
Contributors: NotReallyEight