Class: ClubManager
Constructors
constructor
• new ClubManager(token
)
Parameters
Name | Type |
---|---|
token | string |
Defined in
lib/managers/ClubManager.ts:11
Properties
#token
• Private
#token: string
Defined in
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
Name | Type | Description |
---|---|---|
tag | string | The 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
Name | Type | Description |
---|---|---|
...tags | string [] | The tag of each club. |
Returns
Promise
<Club
[]>