Class: Team

HungryGames~ Team


new Team(id, name, players)

Create a team for a game.
Parameters:
Name Type Description
id string | number The id unique to a guild for this team.
name string The name of this team.
players Array.<string> Array of player ids on the team.
Source:

Members


id :string

The unique id unique to a guild for this team.
Type:
  • string
Source:

name :string

The name of this team. Truncates to 100 characters.
Type:
  • string
Source:

numAlive :number

The number of players on the team still alive.
Type:
  • number
Default Value:
  • players.length
Source:

players :Array.<string>

Array of player ids on the team.
Type:
  • Array.<string>
Source:

rank :number

The current team rank.
Type:
  • number
Default Value:
  • 1
Source: