Skip to main content

Class: ClubManager

Constructors

constructor

new ClubManager(token)

Parameters

NameType
tokenstring

Defined in

lib/managers/ClubManager.ts:11

Properties

#token

Private #token: string

Defined in

lib/managers/ClubManager.ts:9


cache

Private Readonly cache: Cache<Club>

Defined in

lib/managers/ClubManager.ts:10

Methods

fetch

fetch(tag): undefined | Club | Promise<Club>

Get details of a club from the API.

async

Parameters

NameTypeDescription
tagstringThe tag of the club.

Returns

undefined | Club | Promise<Club>

Defined in

lib/managers/ClubManager.ts:20


fetchMany

fetchMany(...tags): Promise<Club[]>

Get details of a multiple clubs from the API.

async

Parameters

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

Returns

Promise<Club[]>

Defined in

lib/managers/ClubManager.ts:39