ChampionMastery class
A representation of a summoner's mastery over a champion.
Signature:
export declare class ChampionMastery
Constructor
new ChampionMastery (data: ChampionMasteryData, champion: Champion)
Constructs a new instance of the ChampionMastery
class.
Parameters:
Parameter | Type | Description |
---|---|---|
data | ChampionMasteryData | The raw champion mastery data from the API. |
champion | Champion | The champion these details are for. |
Properties
champion
The champion these details are for.
Type: Champion
chestGranted
Whether the summoner has earned the chest for this champion this season.
Type: Boolean
lastPlayedAt
The time this summoner played the champion last time.
Type: Date
level
The mastery level, can be anywhere between 1 and 7.
Type: Number
points
The total number of mastery points earned by this summoner on the champion.
Type: Number
pointsSinceLastLevel
The number of mastery points earned by the summoner since they progressed from the previous level.
Type: Number
pointsToNextLevel
The number of mastery points required by the summoner to achieve the next level.
Type: Number
tokens
This is only applicable if the mastery level is 5 or 6. The number of tokens achieved for reaching the next mastery level.
Type: Number