Skip to main content

Class: RankedPlayer

Represents the Player of location based leader-board ranking.

Constructors

constructor

new RankedPlayer(client, data)

Parameters

NameType
clientClient
dataAPIPlayerRanking | APIPlayerBuilderBaseRanking

Defined in

struct/Ranking.ts:88

Properties

name

name: string

The player's name.

Defined in

struct/Ranking.ts:56


tag

tag: string

The player's tag.

Defined in

struct/Ranking.ts:59


expLevel

expLevel: number

The player's experience level.

Defined in

struct/Ranking.ts:62


trophies

trophies: null | number

The player's trophy count. If retrieving info for builder base leader-boards, this will be null.

Defined in

struct/Ranking.ts:65


attackWins

attackWins: null | number

The player's attack wins. If retrieving info for builder base leader-boards, this will be null.

Defined in

struct/Ranking.ts:68


defenseWins

defenseWins: null | number

The player's defense wins. If retrieving info for builder base leader-boards, this will be null.

Defined in

struct/Ranking.ts:71


builderBaseTrophies

builderBaseTrophies: null | number

The player's builder base trophy count. If retrieving info for regular leader-boards, this will be null.

Defined in

struct/Ranking.ts:74


rank

rank: number

The player's rank in the clan leader-board.

Defined in

struct/Ranking.ts:77


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

struct/Ranking.ts:80


clan

clan: null | PlayerClan

The player's clan.

Defined in

struct/Ranking.ts:83


league

league: null | League

The player's league. If retrieving info for builder base leader-boards, this will be null.

Defined in

struct/Ranking.ts:86

Accessors

get shareLink(): string

Get player's formatted link to open player in-game.

Returns

string

Defined in

struct/Ranking.ts:109