VoiceManager manages voice connections per guild. Accessible via client.voice.
FluxerVoiceConnection is returned on join and used for audio playback.
VoiceManager
join
VOICE_SERVER_UPDATE, then establishes a LiveKit WebRTC connection.
If a live connection for the given channel_id already exists, returns it immediately without reconnecting.
Example
Example
disconnect
channel_id and sends opcode 4 with channel_id: null to notify the Gateway.
disconnect_guild
disconnect_all
stop_guild
get_connection
None if not connected.
is_connected
true if a live connection exists for the given channel_id.
FluxerVoiceConnection
Fields
play_file
symphonia for decoding. The format is detected automatically from the file extension. Publishes an audio track on the first call if not already published.
Example
Example
Supported formats
Supported formats
play_bytes
play_file — data must be a valid encoded audio file (MP3, OGG, WAV, etc.), not raw PCM samples.
Example
Example
stop
play_file or play_bytes again afterwards.
disconnect
is_connected
true if the LiveKit room state is Connected.
