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:
| Parameter | Type | Description | 
|---|---|---|
| client | Client | The client that requested this data. | 
| data | CurrentGameParticipantData | The raw current game participant data from the API. | 
| champ | Champion | The champion being played by this participant. | 
| runeTrees | Collection < String, RuneTree > | The collection of the runes in the game. | 
| summonerSpells | Collection < 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:
| Parameter | Type | Description | 
|---|---|---|
| options | FetchOptions | The basic fetching options. | 
Return type: Promise < Summoner >
Table of Contents
