Library referenceClasses
TokenShopApi
per player shop state and the player's own custom skins (the editor's /skins)
Constructors
Constructor
new TokenShopApi(gapi, auth): TokenShopApi;Parameters
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
auth | Record<string, string> |
Returns
TokenShopApi
Methods
customSkin()
customSkin(skinId): Promise<CustomSkin>;GET /skins/:id, one custom skin
Parameters
| Parameter | Type |
|---|---|
skinId | number |
Returns
Promise<CustomSkin>
customSkins()
customSkins(query?): Promise<CustomSkinsPage>;GET /skins, the player's custom skins
Parameters
| Parameter | Type |
|---|---|
query? | CustomSkinsQuery |
Returns
Promise<CustomSkinsPage>
ranked()
ranked(): Promise<RankedShop>;GET /ranked/shop, with the player's purchase counts
Returns
Promise<RankedShop>
wildOffer()
wildOffer(): Promise<WildOffer>;GET /shop/wild-offer, a 200 with {error} inside data when there is none
Returns
Promise<WildOffer>
wristband()
wristband(): Promise<Wristband>;GET /krunkcup/wristband, the player's wristband skin and whether it was claimed
Returns
Promise<Wristband>