krapio
Library referenceClasses

AppNotificationsApi

the player's Krunker Mail; scope notifications:read. reading here never marks mail as read

Constructors

Constructor

new AppNotificationsApi(gapi, auth): AppNotificationsApi;

Parameters

ParameterType
gapiKrunkerClient
authRecord<string, string>

Returns

AppNotificationsApi

Methods

count()

count(): Promise<AppNotificationCount>;

GET /app/v1/notifications/count (notifications:read), how much mail is unread

Returns

Promise<AppNotificationCount>


list()

list(query?): Promise<AppPage<AppNotification>>;

GET /app/v1/notifications (notifications:read), the player's Krunker Mail, newest first

Parameters

ParameterType
query?AppNotificationsQuery

Returns

Promise<AppPage<AppNotification>>

On this page