🎵Player
Represents a Player instance
Constructor
new Player(options)
Properties
Methods
connect()
Connects the bot to the voice channel
disconnect()
Disconnects the bot from the voice channel
destroy()
Destroys the player and disconnects the bot from the voice channel
moveNode()
Moves the player to another lavalink node
node
Node The target node to move the player
pause()
Pauses or resumes the player
state
Boolean Whether to pause the player or not
ping()
Gets the latency between discord voice gateway & lavalink node.
play()
Plays a track
seek()
Seek to a specific position in the track
position
Number The position to seek, in milliseconds
setSelfDeaf()
Sets the bot's deaf state
state
Boolean Whether to self deaf or not
setSelfMute()
Sets the bot's mute state
state
Boolean Whether to self mute or not
setTrackLoop()
Toggles the track repeating
state
Boolean Whether to repeat the current track or not
setQueueLoop()
Toggles the queue repeating
state
Boolean Whether to repeat the queue or not
setVoiceChannel()
Sets the player voice channel
voiceChannelId
String The new voice channel id
shuffleQueue() (DEPRECATED) Use player.queue.shuffle()
Shuffles the queue
skip()
amount
Number (optional) The amount of tracks to skip (default=1)
Last updated