Class ServerMember

Represents a server member on Guilded.

Example

new ServerMember(server, rawMember);

Hierarchy

Constructors

Properties

client: Client

The client the data model belongs to.

id: string

The ID of the structure.

isOwner?: boolean

Whether the server member is the server owner.

joinedAt?: Date

The date the member joined the server.

nickname?: string

The nickname of the server member.

The raw data of the server member.

roleIds: number[]

The IDs of roles the server member has.

The manager of roles that belong to the server member.

server: Server

The server the member belongs to.

socialLinks: Collection<string, APISocialLink> = ...

The social links of the server member.

user: User

The user the server member belongs to.

Accessors

Methods

  • Award XP to the server member.

    Returns

    The total amount of XP the server member has.

    Example

    member.awardXp(100);
    

    Parameters

    • amount: number

      The amount of XP to award.

    Returns Promise<number>

  • Set XP of the server member.

    Returns

    The total amount of XP the server member has.

    Example

    member.setXp(100);
    

    Parameters

    • amount: number

      The total XP of the server member.

    Returns Promise<number>