The manager of groups that belong to the client.

Example

new GroupManager(client);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

cache: CacheCollection<string, Group>

This cache of the manager.

client: Client

Methods

  • Fetch a group from Guilded, or cache.

    Returns

    The fetched group.

    Example

    groups.fetch(group);
    

    Parameters

    • group: string | Group

      The group to fetch.

    • Optional options: FetchOptions

      The options to fetch the group with.

    Returns Group

  • Set the maximum cache size of the manager.

    Returns

    The manager.

    Example

    manager.setMaxCache(100);
    

    Parameters

    • maxSize: number

      The maximum size of the cache.

    Returns GroupManager