Class ServerMemberManager

The manager of members that belong to a server.

Example

new ServerMemberManager(server);

Hierarchy

Constructors

Properties

This cache of the manager.

client: Client

The client the manager belongs to.

server: Server

The server the members belongs to.

Methods

  • Award XP to a member in the server.

    Returns

    The total amount of XP the server member has.

    Example

    members.awardXp(member, 100);
    

    Parameters

    • member: string | ServerMember

      The member to award XP to.

    • amount: number

      The amount of XP to award to the member.

    Returns Promise<number>

  • Set the nickname of a member in the server.

    Returns

    The nickname of the member.

    Example

    members.setNickname(member, 'new nickname');
    

    Parameters

    • member: string | ServerMember

      The member to edit.

    • nickname: string

      The nickname of the member.

    Returns Promise<string>