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:
Parameter | Type | Description |
---|---|---|
client | Client | The 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:
Parameter | Type | Description |
---|---|---|
id | String | The ID of the match |
options | FetchOptions | The 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:
Parameter | Type | Description |
---|---|---|
player | Summoner | String | The summoner or their player ID whose matches need to be fetched. |
options | MatchByPlayerOptions | The 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:
Parameter | Type | Description |
---|---|---|
matchId | String | The ID of the match |
options | FetchOptions | The basic fetch options |
Return type: Promise < MatchTimeline >
Table of Contents