Class REST

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

client: Client

The client that instantiated this class.

Methods

  • Handles errors from the Discord API. Ignores insignificant errors such as 404 as to not interrupt process.

    Parameters

    • HTTPStatus: number
    • APIStatus: number
    • message: string

    Returns void

  • Send a get request to the Discord API.

    Parameters

    • url: string

    Returns Promise<any>

  • Send a post request to the Discord API.

    Parameters

    • url: string

    Returns Promise<any>

Generated using TypeDoc