Class Finish

Represents a finish.

Hierarchy (view full)

Constructors

Properties

mapName: string

The name of the finished map.

players: {
    name: string;
    toPlayer: (() => Promise<Player>);
}[]

The finish player(s).

rank: Rank

The rank obtained.

The region of this finish.

timeSeconds: number

The time of this finish in seconds.

timestamp: number

The timestamp of this finish.

timeString: string

The string formatted time of this finish.

"03:23"

Methods

  • Returns a new Map object from the mapName of this finish.

    Parameters

    • OptionalrankSource: null | RankAvailableRegion

      The region to pull ranks from in the toMap function from the returned value. Omit for global ranks.

    • force: boolean = false

      Wether to bypass the cache.

    Returns Promise<Map>

  • Returns the names of the players and their finish time.

    Returns string

    "Sans3108 | 03:23"