Skip to content

Enum voice::VoiceEvent

zaun_bot::voice::VoiceEvent · Enum

pub enum VoiceEvent { … }

What happened, for on-voice-event.

A track started (its title).

A track ended: played out, skipped, stopped or failed.

A track could not be read (the text names no URL).

A member joined the bot’s voice channel.

A member left it.

The bot’s stay ended (left, moved, disconnected, the host or relay went away).

The last track played out with nothing queued (and no loop): the player is idle. Not sent after stop or leave.

The audio stream’s buffer fell below its low-water mark: write more. The audio still buffered, in ms. Sent again only after a write.

The audio stream closed: drained after close, closed at once, or the stay ended.

Clone, Debug

Full rustdoc page