The main hub for interacting with the Guilded API.

Example

const client = new Client(); client.once('ready', () => console.log(Logged in as ${client.user!.name}!)); client.login('token');

Hierarchy

  • EventEmitter
    • Client

Constructors

Properties

channels: ChannelManager

The manager of channels that belong to the client.

groups: GroupManager

The manager of groups that belong to the client.

options: ClientOptions = {}

The options for the client.

The REST manager for the Guilded API.

servers: ServerManager

The manager of servers that belong to the client.

token?: string

The auth token for the Guilded API.

user?: ClientUser

The user the client is logged in as.

The manager of users that belong to the client.

The Websocket manager for the Guilded API.

Accessors

Methods

  • Login to the Guilded API.

    Returns

    The client.

    Example

    client.login('token');
    

    Parameters

    • Optional token: string

      The auth token for the Guilded API.

    Returns Promise<Client>