new Match()
Match objects contain the results of a completed match such as the game mode played, duration, and which players participated
- Source:
Members
attributes :Object
Attributes of the Match
Properties:
Name | Type | Description |
---|---|---|
attributes.createdAt |
Date
|
Time this match object was stored in the API |
attributes.duration |
number
|
Length of the match |
attributes.gameMode |
string
|
Game mode played * duo, duo-fpp, solo, solo-fpp, squad, squad-fpp |
attributes.mapName |
string
|
Map name * Desert_Main, Erangel_Main |
isCustomMatch |
boolean
|
True if the match is a custom match |
attributes.patchVersion |
string
|
N/A |
attributes.shardId |
string
|
Platform-region shard |
attributes.stats |
Object
|
N/A |
attributes.tags |
Object
|
N/A |
attributes.titleId |
string
|
Identifies the studio and game |
attributes.seasonState |
string
|
State of the season |
- Source:
Type:
-
Object
full :boolean
If the match contains full data or needs `.fetch()`
- Source:
Type:
-
boolean
relationships :Object
Relations of the Match
Properties:
Name | Type | Description |
---|---|---|
relationships.assets |
Array.<Asset>
|
Array of all referenced assets |
relationships.rosters |
Array.<Roster>
|
Array of all referenced rosters |
- Source:
Type:
-
Object
Methods
(static) Tournament#fetch() → {Promise.<Match>}
Fetches the full tournament with all matches included
- Source:
Returns:
- Type:
-
Promise.<Match>
fetchTelemetry() → {Promise.<Object>}
Fetches telemetry data of the match
- Source:
Returns:
- Type:
-
Promise.<Object>