Create (or get) the queue of a guild
Options for customization
Destroy the queue of a guild
Id of the guild
Optionalreason: string
Reason for destroying
Search tracks by query
Query or URL
Optionaloptions: SearchOptions
Options for customization
Add (or search) and play the first resolvable track from source
Source to play from
Options for customization
Jump to a specific track in queue
Id of the guild
Index of the track
Play the previous track in queue
Id of the guild
Seek to a specific position in the current track
Id of the guild
Position in milliseconds
Set autoplay of a queue
Id of the guild
Optionalautoplay: boolean
Whether to enable autoplay (false by default)
Set repeat mode of a queue
Id of the guild
track, queue, none (none by default)
Set volume of a queue
Id of the guild
Numeric value between 0 and 1000
Play the next track in queue
Id of the guild
Fired when the player is initialized.
Fired when a connected node signals ready.
Fired when connection to a node closes and enters reconnecting.
This event is skipped for nodeDisconnect in case of explicit disconnects or nodes with reconnections disabled.
Fired when a node is disconnected and no longer reconnecting.
Fired when a new (or disconnected) VoiceState's node connects to a voice server.
Fired when the connection between a VoiceState's node and voice server closes.
Depending on the close code and PlayerOptions.voiceReconnect, the VoiceState will attempt a reconnect.
Fired when a VoiceState's node is changed.
Fired when a VoiceState has failed to reconnect and disconnected.
As such, this event will never fire if PlayerOptions.voiceReconnect is disabled.
Fired when a queue's lavalink player state updates.
Fired when a queue finishes.
Optionalerror: undefined | ErrorFired when a track starts playing.
Fired when a track is stuck.
Fired when a track errors.
Fired when a track finishes.
Main class putting together all essential managers, also the entry point to get you started