VoiceClient

Members

Functions

connect
bool connect(Duration timeout = 5.seconds)

Attempt a connection to the voice channel this VoiceClient is attached to.

disconnect
void disconnect(bool clean = true)

Disconnects from the voice channel. If clean is true, waits to finish playing.

pause
bool pause(bool wait = false)

Pause the player

play
VoiceClient play(Playable p)

Plays a Playable

resume
bool resume()

Resume the player

send
void send(Serializable p)

Sends a payload to the websocket

setSpeaking
void setSpeaking(bool value)

Set the speaking state

Properties

paused
bool paused [@property getter]

Whether the player is currently paused

playing
bool playing [@property getter]

Whether the player is currently active

Variables

channel
Channel channel;

The channel this VoiceClient is attached to

client
Client client;

Global client which owns this VoiceClient

packetEmitter
Emitter packetEmitter;

Packet emitter

udp
UDPVoiceClient udp;

UDP Client connection

Meta