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