The manager of members that belong to a group.

Example

new GroupMemberManager(group);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

cache: CacheCollection<void, void>

This cache of the manager.

client: Client
group: Group

Methods

  • Add a member to the group.

    Example

    members.add(member);
    

    Parameters

    Returns Promise<void>

  • Remove a member from the group.

    Example

    members.remove(member);
    

    Parameters

    Returns Promise<void>

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