class DiscordAPIError
extends
Errorexport declare class DiscordAPIError extends Error
Represents an API error returned by Discord
Constructors
rawError: DiscordErrorData | OAuthErrorDatastatus: numbermethod: stringurl: stringbodyData: Pick<InternalRequest, 'body' | 'files'>)
constructor(rawError: DiscordErrorData | OAuthErrorData
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