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