Season

Season

new Season()

An API returned Season object
Source:

Members

attributes :Object

Attributes of the Player
Properties:
Name Type Description
attributes.isCurrentSeason boolean Indicates if the season is active
attributes.shardId boolean Indicates if the season is not active
Source:
Type:
  • Object

full :boolean

If the season contains full data, like it's attributes
Source:
Type:
  • boolean

id :string

Season ID
Source:
Type:
  • string

Methods

getPlayerSeason(player, shardopt) → {Promise.<PlayerSeason>}

Get a player season object
Source:
Parameters:
Name Type Attributes Default Description
player string | Player The player of the player season
shard string <optional>
player.attributes.shardId|this.defaultShard The server shard to send the request to
Returns:
Type:
Promise.<PlayerSeason>