# Interface: presence

> The bot's own presence and custom status, shown to every member next to its name: 'Listening to lofi radio', '🎵 Type /play'.

Generated from `zaun:bot@0.2.0` (`wit/` in [zaun-bot](https://github.com/zaunchat/zaun-bot)). Do not edit.

The bot's own presence and custom status, shown to every
member next to its name: "Listening to lofi radio", "🎵 Type /play".

## Uses

- `use types.{host-error, timestamp, activity}`

## Functions

### `set`

```wit
set: func(status: status, activity: option<activity>);
```

Sets the bot's status and activity (`signal.presence`). The host shows changes at most
every 3 s: a later call within that time replaces an earlier one that has not gone out.
The bot is `online` without an activity when it starts.

### `set-status-text`

```wit
set-status-text: func(text: option<string>, emoji: option<string>, expires-at: option<timestamp>) -> result<_, host-error>;
```

Sets the custom status text and emoji (`member.status.set`), kept until `expires-at`
(or changed); `none` for both clears it.

## Types

### `status`

*enum*

`invisible` looks offline to everyone.

| Member | Description |
|---|---|
| `online` |  |
| `idle` |  |
| `dnd` |  |
| `invisible` |  |
