MatchManager class


A match manager - to fetch and manage matches.

Signature:

export declare class MatchManager implements BaseManager<Match> 

Implements: BaseManager<Match>

References: BaseManager, Match


Constructor

new MatchManager (client: Client)

Constructs a new instance of the MatchManager class.

Parameters:

ParameterTypeDescription
clientClientThe client this match manager belongs to.

Properties

client

The client this match manager belongs to.

Type: Client


Methods

.fetch ()

Fetch a match by its ID.

Signature:

fetch(id: string, options?: FetchOptions): Promise<Match>;

Parameters:

ParameterTypeDescription
idStringThe ID of the match
optionsFetchOptionsThe basic fetch options

Return type: Promise < Match >


.fetchMatchListByPlayer ()

Fetch a list of match IDs by a player ID. These are neither stored nor cached.

Signature:

fetchMatchListByPlayer(player: Summoner | string, options?: MatchByPlayerOptions): Promise<string[]>;

Parameters:

ParameterTypeDescription
playerSummoner | StringThe summoner or their player ID whose matches need to be fetched.
optionsMatchByPlayerOptionsThe options for filtering the matches.

Return type: Promise < String >


.fetchMatchTimeline ()

Fetch a match timeline by the match ID.

Signature:

fetchMatchTimeline(matchId: string, options?: FetchOptions): Promise<MatchTimeline>;

Parameters:

ParameterTypeDescription
matchIdStringThe ID of the match
optionsFetchOptionsThe basic fetch options

Return type: Promise < MatchTimeline >