Hierarchy

Constructors

Properties

client: Client
deleted: boolean = false
server: Server

Accessors

Methods

  • Parameters

    • data: {
          colour?: string;
          hoist?: boolean;
          name?: string;
          rank?: number;
          remove?: "Colour"[];
      }
      • Optional colour?: string

        Description

        Role colour

      • Optional hoist?: boolean

        Description

        Whether this role should be displayed separately

      • Optional name?: string

        Description

        Role name

      • Optional rank?: number

        Format: int64

        Description

        Ranking position

        Smaller values take priority.

      • Optional remove?: "Colour"[]

        Description

        Fields to remove from role object

    Returns Promise<Role>

  • Runs all of the callbacks for this emitter. (meant to run when an update occurs)

    Parameters

    • Optional updated: any[]

      The objects that caused this update.

    Returns void