TournamentPlayer class


A representation of a player in a clash tournament.

Signature:

export declare class TournamentPlayer 

Constructor

new TournamentPlayer (client: Client, teamId: string, data: TournamentPlayerData)

Constructs a new instance of the TournamentPlayer class.

Parameters:

ParameterTypeDescription
clientClientThe client that requested this data.
teamIdStringThe ID of the team this player is on.
dataTournamentPlayerDataThe raw player data from the API.

Properties

position

The position this player will be playing in the team.

Type: 'UNSELECTED' | 'FILL' | 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY'


role

The role this player will be performing in the team - CAPTAIN or MEMBER.

Type: 'CAPTAIN' | 'MEMBER'


summoner

Use SummonerManager.fetch to fetch the summoner for this player.

Type: Promise < import("./Summoner").Summoner >


summonerId

The summoner ID of this player.

Type: String


teamId

The ID of the team this player is on.

Type: String


Table of Contents