$queue
$queue
will return the current guild queue list.
Usage
$queue[page?;limit?;format?;separator?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
page? | number | queue page | false |
limit? | number | maximum of songs to display | false |
format? | string | format to display information about the songs (see below) | false |
separator? | string | The separator between songs | false |
Formatting
Field | Returns | Description |
---|---|---|
{position} | number | Song position in the queue |
{title} | string | Song title |
{thumbnail} | string | Song thumbnail (if any) |
{url} | string | Song url |
{duration} | string | Song duration |
{artist} | string | Song author |
{platform} | string | Track player platform |
{identifier} | string | Track identifier |
{isSeekable} | boolean | Return true if the track is seekable |
{isStream} | boolean | Return true if the track is streaming |
{isrc} | string | Track isrc |
{durationMs} | number | Song duration in milliseconds |
{queueLength} | number | Player queue length |
{albumName} | string | Song album name (if any) |
{albumUrl} | string | Song album url (if any) |
{artist.avatar} | string | Artist artwork url (if any) |
{artist.url} | string | Artist url (if any) |
{requester.username} | string | Requester username |
{requester.id} | snowflake | Requester user id |
{requester.avatar} | string | Requester user avatar |
{requester.banner} | string | Requester user banner |
{requester.mention} | string | Requester mention |
{playlist.name} | string | Track playlist name |
{playlist.author} | string | Track playlist author |
{playlist.thumbnail} | string | Track playlist thumbnail |
{playlist.tracks} | number | Total tracks in the playlist |
{playlist.url} | string | Playlist URL |
Example(s)
This will return the current queue in the {position}) {title} - {requester.user.name}
format
1client.command({2 name: 'queue',3 code: `4 $queue[1;10;{position}) {title} - {requester.user.name}]5 `6});
This will return the current queue in the {position}) {title} - {requester.user.name}
format
1module.exports = [{2 name: "queue",3 code: `4 $queue[1;10;{position}) {title} - {requester.user.name}]5 `6}]