Skip to content

Struct voice::VoiceState

zaun_bot::voice::VoiceState · Struct

pub struct VoiceState { … }

The voice channel the bot is in.

The current track’s title.

The queued tracks’ titles, in order (index 0 plays next).

What happens when a track ends.

How far into the current track playback is, in ms (0 when idle). Paused time does not count.

The current track’s length in ms, when known: none for live streams, pushed audio, and files whose length the host cannot tell yet.

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.

Clone, Debug

Full rustdoc page