Represents an error that occurred while interacting with the Guilded API.

Example

new GuildedAPIError('ErrorCode', 'Message', 404, 'GET', '/channels/abc);

Hierarchy

  • Error
    • GuildedAPIError

Constructors

Properties

Constructors

  • Parameters

    • code: string

      The code of the error.

    • message: string

      The message of the error.

    • status: number

      The status code of the error.

    • method: string

      The method used to make the request.

    • path: string

      The path used to make the request.

    • Optional body: any

      The body used to make the request.

    • Optional meta: any

      The meta data of the error.

    Returns GuildedAPIError

Properties

body?: any

The body used to make the request.

code: string

The code of the error.

message: string

The message of the error.

meta?: any

The meta data of the error.

method: string

The method used to make the request.

path: string

The path used to make the request.

status: number

The status code of the error.