Interface: presence
Generated from zaun:bot@0.2.0 (wit/ in 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”.
use types.{host-error, timestamp, activity}
Functions
Section titled “Functions”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
Section titled “set-status-text”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.
status
Section titled “status”enum
invisible looks offline to everyone.
| Member | Description |
|---|---|
online |
|
idle |
|
dnd |
|
invisible |