Skip to main content

Class: LeaderboardManager

Constructors

constructor

new LeaderboardManager(token)

Parameters

NameType
tokenstring

Defined in

lib/managers/LeaderboardManager.ts:11

Properties

#token

Private #token: string

Defined in

lib/managers/LeaderboardManager.ts:9

Methods

fetch

fetch(options): Promise<Collection<string, Leaderboard>>

Fetch the leaderboards of a player or a club.

Parameters

NameTypeDescription
optionsRestLeaderboardOptionsOptions for the leaderboards.

Returns

Promise<Collection<string, Leaderboard>>

Defined in

lib/managers/LeaderboardManager.ts:19

fetch(options): Promise<Collection<string, Leaderboard>>

Fetch the leaderboards of a brawler.

Parameters

NameTypeDescription
optionsLeaderboardBrawlerOptionsOptions for the leaderboards.

Returns

Promise<Collection<string, Leaderboard>>

Defined in

lib/managers/LeaderboardManager.ts:24