krapio
Library referenceClasses

AppSession

the app api bound to one player's access token; made by Krunker.app(accessToken). each endpoint needs its scope on the token, a missing one is a KrunkerForbiddenError with the code insufficient_scope

Constructors

Constructor

new AppSession(client, accessToken): AppSession;

Parameters

ParameterType
clientKrunkerClient
accessTokenstring

Returns

AppSession

Properties

PropertyModifierTypeDescription
actionsreadonlyAppActionsApithe outcome of a per-action approval
clanreadonlyAppClanApineeds clan:read
dmsreadonlyAppDmsApineeds dms:read
friendsreadonlyAppFriendsApineeds friends:read
inventoryreadonlyAppInventoryApineeds inventory:read
mapsreadonlyAppMapsApineeds maps:read
marketreadonlyAppMarketApineeds market:read
notificationsreadonlyAppNotificationsApineeds notifications:read
playerreadonlyAppPlayerApiprofile, on every token
statsreadonlyAppStatsApineeds stats:read
tradesreadonlyAppTradesApineeds trades:read

Methods

rateLimit()

rateLimit(): RateLimitState;

what the last replies said about this player's windows

Returns

RateLimitState

On this page