Class: LeaderboardManager
Constructors
constructor
• new LeaderboardManager(token)
Parameters
| Name | Type |
|---|---|
token | string |
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
| Name | Type | Description |
|---|---|---|
options | RestLeaderboardOptions | Options 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
| Name | Type | Description |
|---|---|---|
options | LeaderboardBrawlerOptions | Options for the leaderboards. |
Returns
Promise<Collection<string, Leaderboard>>