Skip to main content

Notification

OBR.notification

Show notifications in the Owlbear Rodeo interface.

Reference

Methods

show

async show(message, variant?)

Show a notification.

Parameters

NAMETYPEDESCRIPTION
messagestringThe message to show in the notification
variant"DEFAULT" | "ERROR" | "INFO" | "SUCCESS" | "WARNING"An optional style variant for the notification

Returns the notification ID as a string.


close

async close(id)

Close a notification.

Parameters

NAMETYPEDESCRIPTION
idstringThe ID of the notification to close