# Struct voice::VoiceState

> Struct VoiceState in zaun_bot.

`zaun_bot::voice::VoiceState` · Struct

```rust
pub struct VoiceState { … }
```

## Fields

### `channel: Option<Id>`

The voice channel the bot is in.

### `status: PlayerStatus`

### `current: Option<String>`

The current track's title.

### `queued: Vec<Option<String>>`

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

### `loop_mode: LoopMode`

What happens when a track ends.

### `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>`

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>`

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

`Clone`, `Debug`

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/bindings/zaun/bot/voice/struct.VoiceState.html)
