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