Whether or not the player is connected and considered ready for use
The ID of the guild that this player is serving
The node supporting this player
Whether or not the player is currently paused
The current state of the player
Will be undefined until some time after the player starts playing a track
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Instruct Lavalink to connect the player to Discord
The voice data received from Discord
Destroy the player
This does not disconnect the player from Discord
Disconnect the player
This does disconnect the player from Discord
Change the equalizer for the player
The bands to change
Fired when the player is considered ready
Fired when the player encounters something not breaking, but noteworthy
Fired when the player receives a status update from the node
Fired when the track the player is playing has ended
A track ends for many reasons, not just because the track is finished. You should check the [[TrackEndEvent.reason]] property before doing additional logic
Fired whenever the player encouters an error while playing / trying to play a track
Fired whenever the track the player is playing hasn't progressed for a set amount of time
Fired whenever the player starts playing a track
Fired whenever the player is disconnected from Discord and therefor unable to continue playing
Play a loaded track
Before this function can be used, you must first instruct the node to load the track via Node.loadTracks
The base64 response from Node.loadTracks
Extra options that can be provided
Seek the currently playing track
Where the track should be seeked to
Stop the player
This does not disconnect the player from Discord
Move the player to a different voice channel
The channel the player should be moved to
Toggle playback for this player
Whether or not the player is now paused
Change the client's voice state
Channel to switch to, omit to disconnect
Should the client appear mute?
Should the client appear deaf?
Change the volume of the player
The volume the player should be set to
Returns a list listener for a specific emitter event name.
Generated using TypeDoc
Represents a connection between Lavalink and Discord
A player is the primary way to interact with Lavalink