# Notifications

## `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`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.callumg.net/client/notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
