Skip to content

$playlist

$playlist will return a list of tracks from the playlist.

Usage

$playlist[name;userId?;page?;limit?;format?;separator?]

Parameters

FieldTypeDescriptionRequired
namestringPlaylist nametrue
userID?snowflakeUser IDfalse
page?numberqueue pagefalse
limit?numbermaximum of songs to displayfalse
format?stringformat to display information about the songs (see below)false
separator?stringThe separator between songsfalse

You require Playlist setup in your manager instance.

Formatting

FieldReturnsDescription
{position} numberSong position in the queue
{title}stringSong title
{thumbnail}stringSong thumbnail (if any)
{url}stringSong url
{duration}stringSong duration
{artist}stringSong author
{platform}stringTrack player platform
{identifier}stringTrack identifier
{isSeekable}booleanReturn true if the track is seekable
{isStream}booleanReturn true if the track is streaming
{isrc}stringTrack isrc
{durationMs}numberSong duration in milliseconds
{albumName}stringSong album name (if any)
{albumUrl}stringSong album url (if any)
{artist.artworkUrl}stringArtist artwork url (if any)
{artist.url}stringArtist url (if any)

Example(s)

This will return a list of tracks from the playlist in the {position}) {title} format

1
client.command({
2
name: "playlist",
3
code: `
4
$playlist[My Playlist;$authorId;1;10;{position}) {title}]
5
`
6
});