Skip to main content

PlayerManager

Player related endpoints.

Hierarchy

Index

Constructors

publicconstructor

Methods

publicfetch

  • fetch(identifier: string): Promise<Player>
  • Fetch a player using their username or uuid


    Parameters

    • identifier: string

      The username/uuid of the player

    Returns Promise<Player>

publicgetRecentlyPlayedGames

  • Fetch the recently played games of a player


    Parameters

    • identifier: string

      The username/uuid of the player

    Returns Promise<GetRecentlyPlayedGamesResponse[]>

publicgetStatus

  • Fetch the status of a player


    Parameters

    • identifier: string

      The username/uuid of the player

    Returns Promise<GetStatusResponse>