@typed-discord/rest
    Preparing search index...

    Class ClientErrorResponse

    Error thrown when Discord returns a structured JSON client error payload.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cause?: unknown
    message: string
    name: string
    response: ErrorResponse

    Parsed Discord error response body.

    stack?: string
    status: number

    Response status code.

    statusText: string

    Response status text.

    Methods

    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error