🎵Player
Represents a Player instance
Last updated
Represents a Player instance
Last updated
Methods |
---|
Property | Description | Type |
---|---|---|
Connects the bot to the voice channel
Disconnects the bot from the voice channel
Destroys the player and disconnects the bot from the voice channel
Moves the player to another lavalink node
Pauses or resumes the player
Gets the latency between discord voice gateway & lavalink node.
Plays a track
Seek to a specific position in the track
Sets the bot's deaf state
Sets the bot's mute state
Toggles the track repeating
Toggles the queue repeating
Sets the player voice channel
Shuffles the queue
Name | Description | Type |
---|---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Returns | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
options
The Player options
node
The lavalink node that this player is connected to
filters
The filters instance of this player
guildId
The guild id of this player
voiceChannelId
The voice channel id of this player
textChannelId
The text channel id of this player
selfMute
Whether or not this player is muted
selfDeaf
Whether or not this player is deafened
current
The current track of this player
queue
The queue of this player
trackRepeat
Whether to repeat the current track
queueRepeat
Whether to repeat the queue
playing
Whether this player is playing or not
paused
Whether this player is paused or not
state
The state of player's connection
voiceState
The player voicestate
position
The player position
exactPosition
The exact player position
queueDuration
The queue duration, in milliseconds (DEPRECATED, use queue.duration)
volume
The player volume [0, 500]
recorder
Gets the player recorder object
node
Node The target node to move the player
state
Boolean Whether to pause the player or not
The latency value
options
Object (optional)
options.startTime
Number (optional) Track start time in milliseconds
options.endTime
Number (optional) Track end time in milliseconds
options.noReplace
Boolean (optional) Whether to ignore the play operation if a track is already playing or paused
position
Number The position to seek, in milliseconds
state
Boolean Whether to self deaf or not
state
Boolean Whether to self mute or not
state
Boolean Whether to repeat the current track or not
state
Boolean Whether to repeat the queue or not
voiceChannelId
String The new voice channel id
amount
Number (optional) The amount of tracks to skip (default=1)