Skip to main content

Class: BattlelogManager

Constructors

constructor

new BattlelogManager(token)

Parameters

NameType
tokenstring

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

NameTypeDescription
tagstringThe 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

NameTypeDescription
...tagsstring[]The tag of each player.

Returns

Promise<Battlelog[][]>

Defined in

lib/managers/BattlelogManager.ts:29