bindings::zaun::bot::community::add_role |
member.roles.update. |
bindings::zaun::bot::timers::after |
Fires once after ms. |
bindings::zaun::bot::audio::buffered_ms |
The audio written and not yet played, in ms (0 without a stream). |
bindings::zaun::bot::timers::cancel |
|
bindings::zaun::bot::audio::clear |
Drops everything buffered at once, keeping the stream open (to interrupt speech). |
bindings::zaun::bot::voice::clear_queue |
Empties the queue; the current track keeps playing. |
presence::clear_status |
Clears the custom status. |
bindings::zaun::bot::dms::close |
dm.close: hides it from the bot’s list. |
bindings::zaun::bot::audio::close |
Closes the stream: once the buffer has played (drain), or at once. The player resumes. Nothing happens without a stream. |
bindings::zaun::bot::messages::delete |
message.delete. |
bindings::zaun::bot::storage::delete |
|
bindings::zaun::bot::interactions::delete_original |
Deletes the original response. |
dispatch |
Calls the Bot handler for event. |
bindings::zaun::bot::messages::dm |
A direct message to member member-id (capability dms): opens the DM when needed, then sends. Returns the DM’s channel id and the message id. |
bindings::zaun::bot::messages::edit |
message.edit of one of the bot’s messages. |
bindings::zaun::bot::interactions::edit_original |
Edits the original response (ends a deferred “thinking” state). |
bindings::zaun::bot::voice::end_stream |
The pushed track ends once its buffered packets have played. |
bindings::zaun::bot::voice::enqueue |
Adds track to the queue (≤ 100); returns the queue’s length. |
bindings::zaun::bot::timers::every |
Fires every ms (≥ 1000). |
bindings::zaun::bot::http::fetch |
|
bindings::zaun::bot::interactions::followup |
A follow-up message, within 15 minutes; at most 10. |
bindings::zaun::bot::storage::get |
|
bindings::zaun::bot::community::get_channel |
|
bindings::zaun::bot::community::get_member |
Needs capability members for members the bot has not seen. |
bindings::zaun::bot::community::get_role |
|
bindings::zaun::bot::messages::history |
message.history: up to limit (1-100) messages before before. |
mention::is_id |
Whether id is a well-formed Zaun id: 16 bytes in unpadded base64url (22 characters, the last one of A, Q, g, w). |
bindings::zaun::bot::voice::join |
Joins voice channel channel (leaving another one first). Returns once media can flow (at most about 10 s). FORBIDDEN without voice, CONNECT or SPEAK. |
bindings::zaun::bot::community::kick |
member.kick. |
bindings::zaun::bot::voice::leave |
Leaves; playback stops and the queue is cleared. |
bindings::zaun::bot::community::list_channels |
|
bindings::zaun::bot::storage::list_keys |
Keys starting with prefix, in order, after after, at most limit (≤ 1000). |
bindings::zaun::bot::community::list_members |
|
bindings::zaun::bot::dms::list_open |
dm.list: the DMs the bot has open. |
bindings::zaun::bot::community::list_roles |
|
mention::member |
The text that shows a member mention: <@id> (discord.js userMention). |
bindings::zaun::bot::voice::move_ |
Moves the queued track at from to to (both 0-based); the tracks between shift. NOT_FOUND past the end. |
mention::none |
No mentions. |
bindings::zaun::bot::dms::open |
dm.open: the DM with member-id, created when there is none. |
bindings::zaun::bot::audio::open |
Opens the stream in the bot’s voice channel, pausing the player. CONFLICT when the bot is in no voice channel or a stream is open; UNSUPPORTED for a format the host cannot take |
mention::parse |
The mentions content shows: <@id> (and Discord’s <@!id>) for members, <@&id> for roles, @everyone. Each id once, in order, at most MAX_MEMBERS members and MAX_ROLES r |
bindings::zaun::bot::voice::pause |
|
bindings::zaun::bot::voice::play |
Plays track now, replacing the current one; the queue stays. |
bindings::zaun::bot::voice::push |
Opus packets (2.5 to 120 ms each, ≤ 1000 bytes) for the current pushed track. Returns the audio buffered, in ms; BUSY past 3 s, so push about as fast as it plays. |
bindings::zaun::bot::messages::react |
reaction.add. |
bindings::zaun::bot::voice::remove |
Removes the queued track at index (0 plays next); returns its title. NOT_FOUND past the end. |
bindings::zaun::bot::community::remove_role |
|
bindings::zaun::bot::interactions::respond |
The initial response, within 3 s (the runtime defers automatically at 2.5 s). Returns the message id when the response created a channel message. |
bindings::zaun::bot::voice::resume |
|
mention::role |
The text that shows a role mention: <@&id> (discord.js roleMention). |
bindings::zaun::bot::voice::seek |
Jumps to ms into the current track (past the end: the track ends). UNSUPPORTED for live streams and pushed audio, and on hosts that cannot seek; CONFLICT when nothing plays. |
bindings::zaun::bot::messages::send |
message.send. Returns the new message id. |
presence::set |
Sets the bot’s status and activity (None: no activity). |
bindings::zaun::bot::commands::set |
|
bindings::zaun::bot::storage::set |
QUOTA_EXCEEDED when the grant is used up. |
bindings::zaun::bot::presence::set |
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 b |
bindings::zaun::bot::voice::set_loop |
Sets what happens when a track ends (off when the bot joins). |
presence::set_status |
Sets the custom status text and emoji, cleared by the host at expires_at (ms) if given. |
presence::set_status_text |
Sets the custom status text, kept until changed. |
bindings::zaun::bot::presence::set_status_text |
Sets the custom status text and emoji (member.status.set), kept until expires-at (or changed); none for both clears it. |
bindings::zaun::bot::voice::set_volume |
Sets the playback volume, 0-200 % (100 when the bot joins; BAD_REQUEST above 200). Changing it means decoding and re-encoding the Opus audio, so hosts without an Opus encoder ans |
bindings::zaun::bot::voice::shuffle |
Puts the queue in a random order (the current track keeps playing). |
bindings::zaun::bot::voice::skip |
Ends the current track; the next one starts. |
bindings::zaun::bot::voice::state |
Where the bot is and what it plays. |
bindings::zaun::bot::voice::stop |
Ends the current track and clears the queue. |
text_choice |
A text Choice (autocomplete results and fixed choices). |
bindings::zaun::bot::community::timeout |
member.timeout; none clears. |
bindings::zaun::bot::messages::unreact |
reaction.remove of the bot’s own reaction. |
bindings::zaun::bot::messages::upload |
Uploads a file for the bot’s next message (capability attachments). Returns the attachment id to put in message-body.attachments. |
bindings::zaun::bot::log::write |
|
bindings::zaun::bot::audio::write_opus |
Opus packets, for an opus stream. Returns the audio buffered, in ms; BUSY past 3 s. |
bindings::zaun::bot::audio::write_pcm |
Interleaved samples, for a pcm stream; any count (the host frames them). Returns the audio buffered, in ms; BUSY past 3 s. |