# Function bindings::zaun::bot::voice::set_loop

> Sets what happens when a track ends (`off` when the bot joins).

`zaun_bot::bindings::zaun::bot::voice::set_loop` · Function

```rust
pub fn set_loop(mode: LoopMode) -> Result<(), HostError>
```

Sets what happens when a track ends (`off` when the bot joins).

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