Static function
Moderate
Client.ShowNotification
Shows a notification using the built-in notification system.
Syntax
Client.ShowNotification(text, notification_type = NotificationType.Info, add_to_notification_list = true, duration = 10)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
text
|
string | — | — |
notification_type
optional
|
NotificationType | NotificationType.Info |
— |
add_to_notification_list
optional
|
boolean | true |
Whether to add this notification to the notification list (accessible from the bell icon on the top-right corner) |
duration
optional
|
float | 10 |
Duration in seconds to display the notification |