This is a small guide which helps you to know all functions of discord-tunes. For more help, join my Discord Server
Parameter
Type
Description
none
none
Connect to lavalink server
play(query, author, guildID, voiceChannelID, textChannelID, volume, selfDeaf, selfMute)
Parameter
Type
Description
query
string
Track query to play
author
object
Author object
guildID
string
In which guild bot will do the job
voiceChannelID
string
In which voice channel bot will join
textChannelID
string
In which text channel bot will send event messages
volume
number
Volume of the voice connection
selfDeaf
boolean
Whether selfDeafen or not
selfMute
boolean
Whether selfMute or not
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
skipTo(guildID, trackNum)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
trackNum
number
To which track you want to skip
Parameter
Type
Description
guildID
string
In which guild bot will do the job
loopType
string
Type of the loop, whether track or queue
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
time
N
S
Parameter
Type
Description
guildID
string
In which guild bot will do the job
time
N
S
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
time
N
S
remove(guildID, trackNum)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
trackNum
number
Track number to remove from queue
removeDuplicates(guildID)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
percent
number
Volume percentage to increase or decrease
nowPlaying(guildID, embedColor)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
embedColor
string
(Optional) Set embed color, can be string or hex
queueList(guildID, pageNum, embedColor)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
pageNum
number
(Required when needed) Page number in the queue
embedColor
string
(Optional) Set embed color, can be string or hex
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
join(guildID, voiceChannelID, textChannelID, volume, selfDeaf, selfMute)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
voiceChannelID
string
In which voice channel bot will join
textChannelID
string
In which text channel bot will send event messages
volume
number
Volume of the voice connection
selfDeaf
boolean
Whether selfDeafen or not
selfMute
boolean
Whether selfMute or not
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
trackTitle
string
Title of the track to get lyrics
setEQ(guildID, ...bandsArray)
Parameter
Type
Description
guildID
string
In which guild bot will do the job
...bandsArray
array
Array of the bands
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Filters list, it require lavalink v3.4 or above to run.
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Some of other functions, for extensive work
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Parameter
Type
Description
guildID
string
In which guild bot will do the job
Events of discord-tunes
Event: nodeStatus
- Shows all node connection, disconnection, error and reconnect
Event: playerStart
- Fire up when player is being start to playing
Event: playerEnd
- Fire up when player is being stopped
Event: playerError
- Fire up when there's an error occurred while playing the track
Event: playerUnknownError
- Fire up when there's an internal error or stuck at playing
Event: noResults
- Fire up when lavalink will not found any results of your query
Event: trackAdded
- Fire up when a new track has been added to the queue
Event: trackLoad
- Fire up when track is been loaded and ready to play (requires for queued tracks)
Event: searchAdded
- Fire up when a new search has been added to the queue
Event: searchResult
- Fire up when search result is ready to play (requires for queued tracks)
Event: playerStop
- Fire up when stop function will be call to stop the track [DEPRECATED]
Event: loadFailed
- Fire up when something broke lavalink to load the track
Event: logs
- Shows debug logs