Properties
Optional
cause
cause?: unknown
method
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"
name
name: string = "DiscordHTTPError"
resBody
res
Body
: null | Record<string, unknown>
response
response: Response
Optional
stack
stack?: string
Static
Optional
prepareStackTrace
prepare
Stack
Trace
?: ((err
: Error, stackTraces
: CallSite[]) => any)
Type declaration
-
- (err: Error, stackTraces: CallSite[]): any
-
Returns any
Static
stackTraceLimit
stackTraceLimit: number
An HTTP error received from Discord.