> For the complete documentation index, see [llms.txt](https://docs.callumg.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.callumg.net/client/notifications.md). Agents can also search and read this documentation through its [MCP server](https://docs.callumg.net/~gitbook/mcp).

# Notifications

In-built notification system to display messages to users.

## `Notify(message, notif_type)`

Returns a notification handler object. Also sends an on-screen notification to the user with the specified message and style.

* message<mark style="color:red;">\*</mark> (string) - notification message to display
* notif\_type (string) - notification type which can be `info` (default), `success`, `warning` or `error`

<mark style="color:red;">\*</mark> = required arguments

## Notification Handler

### `notification.close()`

Closes the notification early (before it automatically closes after 5 seconds). Takes no parameters

Reference: `utils/cl_utils.lua`
