Class: Player
The entity which we use to construct every player entry.
Hierarchy
Structure
↳
Player
Constructors
constructor
• new Player(options
)
Parameters
Name | Type |
---|---|
options | Omit <IPlayer , "3vs3Victories" > |
Overrides
Structure.constructor
Defined in
Properties
#endpoint
• Private
#endpoint: string
Inherited from
Structure.#endpoint
Defined in
#url
• Private
#url: string
= 'https://bsproxy.royaleapi.dev/v1'
Inherited from
Structure.#url
Defined in
bestRoboRumbleTime
• bestRoboRumbleTime: number
Defined in
bestTimeAsBigBrawler
• bestTimeAsBigBrawler: number
Defined in
brawlers
• Optional
brawlers: null
| BrawlersEntity
[]
Defined in
club
• club: PlayerClub
Defined in
duoVictories
• duoVictories: number
Defined in
expLevel
• expLevel: number
Defined in
expPoints
• expPoints: number
Defined in
highestPowerPlayPoints
• highestPowerPlayPoints: number
Defined in
highestTrophies
• highestTrophies: number
Defined in
icon
• icon: Icon
Defined in
isQualifiedFromChampionshipChallenge
• isQualifiedFromChampionshipChallenge: boolean
Defined in
name
• name: string
Defined in
nameColor
• nameColor: string
Defined in
soloVictories
• soloVictories: number
Defined in
tag
• tag: string
Defined in
trioVictories
• trioVictories: number
Defined in
trophies
• trophies: number
Defined in
Methods
getBattleLog
▸ getBattleLog(): Promise
<undefined
| null
| ItemsEntity
[]>
Get battlelog of the player.
Returns
Promise
<undefined
| null
| ItemsEntity
[]>
Defined in
request
▸ request<T
>(endpoint?
, token?
): Promise
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
endpoint | string |
token | string |
Returns
Promise
<T
>
Inherited from
Structure.request