Class: RankedPlayer
Represents the Player of location based leader-board ranking.
Constructors
constructor
• new RankedPlayer(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIPlayerRanking | APIPlayerBuilderBaseRanking |
Defined in
Properties
name
• name: string
The player's name.
Defined in
tag
• tag: string
The player's tag.
Defined in
expLevel
• expLevel: number
The player's experience level.
Defined in
trophies
• trophies: null
| number
The player's trophy count. If retrieving info for builder base leader-boards, this will be null
.
Defined in
attackWins
• attackWins: null
| number
The player's attack wins. If retrieving info for builder base leader-boards, this will be null
.
Defined in
defenseWins
• defenseWins: null
| number
The player's defense wins. If retrieving info for builder base leader-boards, this will be null
.
Defined in
builderBaseTrophies
• builderBaseTrophies: null
| number
The player's builder base trophy count. If retrieving info for regular leader-boards, this will be null
.
Defined in
rank
• rank: number
The player's rank in the clan leader-board.
Defined in
previousRank
• previousRank: null
| number
The player's rank before the last leader-board change. If retrieving info for legend league season, this will be null
.
Defined in
clan
• clan: null
| PlayerClan
The player's clan.
Defined in
league
• league: null
| League
The player's league. If retrieving info for builder base leader-boards, this will be null
.
Defined in
Accessors
shareLink
• get
shareLink(): string
Get player's formatted link to open player in-game.
Returns
string