Struct voice::VoiceState
zaun_bot::voice::VoiceState · Struct
pub struct VoiceState { … }Fields
Section titled “Fields”channel: Option<Id>
Section titled “channel: Option<Id>”The voice channel the bot is in.
status: PlayerStatus
Section titled “status: PlayerStatus”current: Option<String>
Section titled “current: Option<String>”The current track’s title.
queued: Vec<Option<String>>
Section titled “queued: Vec<Option<String>>”The queued tracks’ titles, in order (index 0 plays next).
loop_mode: LoopMode
Section titled “loop_mode: LoopMode”What happens when a track ends.
position_ms: u64
Section titled “position_ms: u64”How far into the current track playback is, in ms (0 when idle). Paused time does not count.
duration_ms: Option<u64>
Section titled “duration_ms: Option<u64>”The current track’s length in ms, when known: none for live streams, pushed
audio, and files whose length the host cannot tell yet.
participants: Vec<Id>
Section titled “participants: Vec<Id>”The members in the bot’s voice channel, the bot itself left out (empty when it is in none). Empty means the bot is alone.
Trait implementations
Section titled “Trait implementations”Clone, Debug