Struct discord::voice::VoiceConnection [] [src]

pub struct VoiceConnection { /* fields omitted */ }

An active or inactive voice connection, obtained from Connection::voice.

Methods

impl VoiceConnection
[src]

Connect to the specified voice channel. Any previous channel on this server will be disconnected from.

Disconnect from the current voice channel, if any.

Set the mute status of the voice connection.

Note that enabling mute client-side is cosmetic and does not prevent the sending of audio; to fully mute, you must manually silence the audio source.

Set the deaf status of the voice connection. Does not affect mute status.

Get the current channel of this voice connection, if any.

Play from the given audio source.

Stop the currently playing audio source.

Set the receiver to which incoming voice will be sent.

Clear the voice receiver, discarding incoming voice.

Trait Implementations

impl Drop for VoiceConnection
[src]

A method called when the value goes out of scope. Read more