Skip to main content

open

Function open 

Source
pub fn open(options: &StreamOptions) -> Result<(), HostError>
Expand description

Opens the stream in the bot’s voice channel, pausing the player. CONFLICT when the bot is in no voice channel or a stream is open; UNSUPPORTED for a format the host cannot take; BAD_REQUEST for a rate, channel count or low-water mark out of range.