The main hub for interacting with the Guilded API.

Example

// Start the client
new Client();
// Start the client in development mode
new Client({ dev: true });

Hierarchy

Constructors

Properties

channels: ChannelManager

The manager of channels that belong to the client.

commands: Collection<string, Command> = ...

The commands that belong to the client.

config: ClientConfig

The config for the client.

groups: GroupManager

The manager of groups that belong to the client.

options: ClientOptions = {}

The options for the client.

prefixes: Collection<string, string> = ...

The prefixes per server.

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

  • get api(): Router
  • The router for the Guilded REST API.

    Returns Router

  • get isReady(): boolean
  • Whether the client is ready to use.

    Returns boolean

  • get readyAt(): undefined | Date
  • The date the client was ready.

    Returns undefined | Date

  • get readyTimestamp(): undefined | number
  • The timestamp the client was ready.

    Returns undefined | number

  • get uptime(): undefined | number
  • The time the client has been in the ready state.

    Returns undefined | number

Methods

  • Debug the client.

    Returns

    The client.

    Example

    client.debug('Hello World!');
    

    Parameters

    • Optional data: any

      The debug data.

    Returns Client

  • Disconnect from Guilded.

    Returns

    The client.

    Example

    client.disconnect();
    

    Returns Client

  • 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>