Class GlobalServerManager

A class representing a global server manager. You can retrieve servers from the .cache property

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

cache: Collection<string, Server> = ...
client: Client

Accessors

Methods

  • Fetches a server.

    Example

    client.servers.fetch(message.serverId)
    

    Parameters

    • serverId: string

      The ID of the server to fetch.

    • Optional force: boolean

      Whether or not to force a fetch instead of using the cache.

    Returns Promise<Server>

    A Promise that resolves with the fetched server.

Generated using TypeDoc