Skip to main content

Class: RaceNotifications

Race Notifictions is a Collection of Utilities to Help with Standardising Notifications

Methods

actionNotification

Static actionNotification(message, type, actions): null | Notification

Display an Action Notification that can be interacted with.

Parameters

NameType
messagestring
typeNotificationType
actionsRaceNotificationAction[]

Returns

null | Notification

Example

    RaceNotifications.actionNotification("Settings Successfully Saved", NotificationType.success);

register

Static register(): void

Register should be called at the Top of your Plugins init function

Returns

void

Example

    RaceNotifications.register();

simpleNotification

Static simpleNotification(message, type): null | Notification

Diplay a Simple Notification

Parameters

NameType
messagestring
typeNotificationType

Returns

null | Notification

Example

    RaceNotifications.simpleNotification("Settings Successfully Saved", NotificationType.success);