Class: BattlelogManager
Constructors
constructor
• new BattlelogManager(token
)
Parameters
Name | Type |
---|---|
token | string |
Defined in
lib/managers/BattlelogManager.ts:8
Properties
#token
• Private
#token: string
Defined in
lib/managers/BattlelogManager.ts:7
Methods
fetch
▸ fetch(tag
): Promise
<Battlelog
[]>
Get battlelog of a player from the API.
Parameters
Name | Type | Description |
---|---|---|
tag | string | The tag of the player. |
Returns
Promise
<Battlelog
[]>
Defined in
lib/managers/BattlelogManager.ts:16
fetchMany
▸ fetchMany(...tags
): Promise
<Battlelog
[][]>
Get battlelogs of multiple players from the API.
Parameters
Name | Type | Description |
---|---|---|
...tags | string [] | The tag of each player. |
Returns
Promise
<Battlelog
[][]>