Enum voice::VoiceEvent
zaun_bot::voice::VoiceEvent · Enum
pub enum VoiceEvent { … }What happened, for on-voice-event.
Variants
Section titled “Variants”TrackStart(Option<String>)
Section titled “TrackStart(Option<String>)”A track started (its title).
TrackEnd(Option<String>)
Section titled “TrackEnd(Option<String>)”A track ended: played out, skipped, stopped or failed.
TrackError(String)
Section titled “TrackError(String)”A track could not be read (the text names no URL).
MemberJoined(Id)
Section titled “MemberJoined(Id)”A member joined the bot’s voice channel.
MemberLeft(Id)
Section titled “MemberLeft(Id)”A member left it.
Ended(Option<String>)
Section titled “Ended(Option<String>)”The bot’s stay ended (left, moved, disconnected, the host or relay went away).
QueueEnded
Section titled “QueueEnded”The last track played out with nothing queued (and no loop): the player is idle.
Not sent after stop or leave.
AudioLow(u32)
Section titled “AudioLow(u32)”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.
AudioClosed
Section titled “AudioClosed”The audio stream closed: drained after close, closed at once, or the stay ended.
Trait implementations
Section titled “Trait implementations”Clone, Debug