class DiscordAPIError
extends
Errordeclare class DiscordAPIError extends ErrorRepresents an API error returned by Discord
Constructors
constructor(rawError: DiscordErrorData | OAuthErrorDatastatus: numbermethod: stringurl: stringbodyData: Pick<InternalRequest, 'body' | 'files'>)
rawError: DiscordErrorData | OAuthErrorData
status: number
method: string
url: string
bodyData: Pick<InternalRequest, 'body' | 'files'>
Constructs a new instance of the DiscordAPIError class
method : string
readonlyname : string
The name of the error