$queue
Returns the songs in the queue with details.

FUNCTION USAGE

    $queue[]
    $queue[placeholders;start;end]

Properties:

placeholders - The placeholders for getting queue information. Defaults at {position} - {name}. start - The starting point of songs in the queue to display. Starts and defaults at 0. end - The ending point of songs in the queue to display. Defaults at 10.

Placeholders:

{request-id} - The ID of the user that requested the song. {request-tag} - The tag of the user that requested the song. {request-name} - The username of the user that requested the song. {url} - The URL of the song. {name} - The name of the song. {position} - The position of the song.

Example 1: Bot will return the first 10 songs and thier positions in the queue.

1
bot.Command({
2
name: "q",
3
code: `
4
$queue[]
5
`
6
})
Copied!

Example 2: Bot will return the first 15 songs and thier positions in the queue.

1
bot.Command({
2
name: "q",
3
code: `
4
$queue[\`#{position}\` | {name};0;15]
5
`
6
})
Copied!

Example 3: Bot will return the first 15 songs and thier positions in the queue as an embedded message with a footer for more detail.

1
bot.Command({
2
name: "q",
3
code: `
4
5
$description[$queue[\`#{position}\` | {name};0;10]]
6
$footer[Requested by - {request-tag}]
7
`
8
})
Copied!
Last modified 3mo ago
Copy link