Class DiscordHTTPError

An HTTP error received from Discord.

Hierarchy

Accessors

Constructors

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Properties

cause?: unknown
message: string
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH"
name: string = "DiscordHTTPError"
resBody: null | Record<string, unknown>
response: Response
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number