$trackInfo
Returns information about a song in the queue.

FUNCTION USAGE

  • $trackInfo[option;number]

Properties:

option - The data to return for the song. number - The position of the song in the queue.

Options:

thumbnail - The thumbnail of the song displayed on the YouTube source. title - The song title. author - The song author. requester - The ID of the user who requested the song. url - The song URL. length - The length of the song.

Example: Full command without limiters for displaying information about a song. Just define the position of the song in the queue.

1
bot.Command({
2
name: "song-info",
3
code: `
4
$color[FF0000]
5
$thumbnail[$trackInfo[thumbnail;$message[]]]
6
$author[Artist - $trackInfo[author;$message[]]]
7
$title[Song - $trackInfo[title;$message[]]]
8
$description[
9
Length: $trackInfo[length;$message[]]
10
Link: {hyper:Click here:$trackInfo[url;$message[]]}
11
]
12
$footer[Requested by - $tag[$trackInfo[requester;$message[]]]]
13
`
14
})
Copied!
Last modified 7mo ago
Copy link