The server role router for the Guilded REST API.

Example

new ServerRoleRouter(rest);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Award XP to a server role on Guilded.

    Example

    serverRoles.awardXp('abc', 'abc', 100);
    

    Parameters

    • serverId: string

      The ID of the server the role belongs to.

    • roleId: number

      The ID of the role to award XP to.

    • amount: number

      The amount of XP to award.

    Returns Promise<void>