Results

Namespace

Type

Represents an error returned by the Discord API when making certain requests.

Hierarchy

  • Error
    • ApiError <-- You are here!

Index

Properties

code

code: number

The error code returned by the API. Please see Discord's docs on JSON error codes for more information.

endpoint

endpoint: string

The URL suffix used when making the request to the Discord API.

httpMethod

httpMethod: string

The HTTP Method (GET, POST, etc) used when making the request to the Discord API.

httpStatus

httpStatus: number

The HTTP status code returned by the Discord API. Please see Discord's docs on HTTP status codes for more information.

httpStatusText

httpStatusText: string

The HTTP status text returned by the Discord API.

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc