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
| Parameter | Type |
|---|---|
gapi | KrunkerClient |
auth | Record<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
| Parameter | Type |
|---|---|
query? | AppNotificationsQuery |
Returns
Promise<AppPage<AppNotification>>