Class VoiceClient

Inherits from

  • Object (base class)

Constructors

Name Description
this

Fields

Name Type Description
channel Channel The channel this VoiceClient is attached to
client Client Global client which owns this VoiceClient
packetEmitter Emitter Packet emitter
playable Playable
state VoiceState
udp UDPVoiceClient UDP Client connection

Properties

Name Type Description
paused [get] bool Whether the player is currently paused
playing [get] bool Whether the player is currently active

Methods

Name Description
connect Attempt a connection to the voice channel this VoiceClient is attached to.
disconnect Disconnects from the voice channel. If clean is true, waits to finish playing.
pause Pause the player
play Plays a Playable
resume Resume the player
run
send Sends a payload to the websocket
setSpeaking Set the speaking state