Class: ContextPlayer
Representing a context player.
Hierarchy
default
↳
ContextPlayer
Methods
getID
▸ getID(): string
Get the player's ID.
Example
player.getID(); // '5458282176661711'
Returns
string
Player ID
Inherited from
Player.getID
Defined in
getName
▸ getName(): string
Get the player's name.
Example
player.getName(); // 'Alpha Omega'
Returns
string
Player name
Inherited from
Player.getName
Defined in
getPhoto
▸ getPhoto(): string
Get the player's photo.
Example
player.getPhoto(); // A CORS supported URL to user's photo
Returns
string
URL of player photo
Inherited from
Player.getPhoto
Defined in
hasPlayed
▸ hasPlayed(): boolean
Get info about if the player has played the game.
Example
player.hasPlayed();
Returns
boolean
True if the player has played the game
Inherited from
Player.hasPlayed