UnauthorizedError

API reference for UnauthorizedError in @erlcjs/core.

Error thrown if the request was unauthorized. This is normally thrown when the IP was not whitelisted or the global app was not authorized for that server. To authorize an IP go to https://api.erlc.gg/server-owners. To create a global app for an authorization link go to https://api.erlc.gg/developers/applications. To create an authorization link for your global app do console.log(server.authorizationLink).

Signature:

declare class UnauthorizedError extends Error

Extends: Error

#Constructors

Constructor

Modifiers

Description

(constructor)(message)

Constructs a new instance of the UnauthorizedError class