Library referenceClasses
PublicShopApi
the shop's catalogue data; the wild offer and every purchase need the player's token
Constructors
Constructor
new PublicShopApi(gapi): PublicShopApi;Parameters
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
Returns
PublicShopApi
Methods
display()
display(displayId): Promise<ShopDisplay>;GET /shop/displays/:id, display 1 is the front
Parameters
| Parameter | Type |
|---|---|
displayId | number |
Returns
Promise<ShopDisplay>
displayByTag()
displayByTag(tag): Promise<ShopDisplay>;GET /shop/displays?tag=, "premium" is what the menu asks for; without a tag the api answers 400
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
Promise<ShopDisplay>
lottery()
lottery(lotteryId): Promise<Lottery>;GET /lottery/:id, id 1 is the running one; player_entries is 0 without a token
Parameters
| Parameter | Type |
|---|---|
lotteryId | number |
Returns
Promise<Lottery>
spinWheels()
spinWheels(): Promise<SpinWheel[]>;GET /spins/wheels, every wheel with its item pools and weights
Returns
Promise<SpinWheel[]>