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

  • getRecentlyPlayedGames(identifier: string): Promise<GetRecentlyPlayedGamesResponse[]>
  • Fetch the recently played games of a player


    Parameters

    • identifier: string

      The username/uuid of the player

    Returns Promise<GetRecentlyPlayedGamesResponse[]>

publicgetStatus

  • getStatus(identifier: string): Promise<GetStatusResponse>
  • Fetch the status of a player


    Parameters

    • identifier: string

      The username/uuid of the player

    Returns Promise<GetStatusResponse>