Skip to content

Function bindings::zaun::bot::voice::set_volume

zaun_bot::bindings::zaun::bot::voice::set_volume · Function

pub fn set_volume(percent: u16) -> Result<(), HostError>

Sets the playback volume, 0-200 % (100 when the bot joins; BAD_REQUEST above 200). Changing it means decoding and re-encoding the Opus audio, so hosts without an Opus encoder answer UNSUPPORTED: call it anyway and tell the member.

Full rustdoc page