CurrentGameParticipant class


A representation of a participant in a live game.

Signature:

export declare class CurrentGameParticipant 

Constructor

new CurrentGameParticipant (client: Client, data: CurrentGameParticipantData, champ: Champion, runeTrees: Collection<string, RuneTree>, summonerSpells: Collection<string, SummonerSpell>)

Constructs a new instance of the CurrentGameParticipant class.

Parameters:

ParameterTypeDescription
clientClientThe client that requested this data.
dataCurrentGameParticipantDataThe raw current game participant data from the API.
champChampionThe champion being played by this participant.
runeTreesCollection < String, RuneTree >The collection of the runes in the game.
summonerSpellsCollection < String, SummonerSpell >The collection of the summoner spells in the game.

Properties

bot

Whether the participant is a bot.

Type: Boolean


champion

The champion being played by this participant.

Type: Champion


perks

The rune setups of this participant.

Type: CurrentGamePerks


profileIcon

A link to the participant's profile icon.

Type: String


summonerName

The summoner name of this participant.

Type: String


summonerSpells

The summoner spells being used by this participant.

Type: Collection < 'D' | 'F', SummonerSpell >


teamId

The ID of the team this participant belongs to.

Type: Number


Methods

.fetchSummoner ()

Fetches the summoner info of this participant.

Signature:

fetchSummoner(options?: FetchOptions): Promise<Summoner>;

Parameters:

ParameterTypeDescription
optionsFetchOptionsThe basic fetching options.

Return type: Promise < Summoner >