Skip to content

$playlistSongInfo

$playlistSongInfo will return given song’s information in the playlist.

Usage

$playlistSongInfo[name;property;index;userId?]

Parameters

FieldTypeDescriptionRequired
namestringPlaylist nametrue
propertystringSong information property you want to retrieve (see bellow)true
indexnumberTrack position in the playlisttrue
userID?snowflakeUser IDfalse

You require Playlist setup in your manager instance.

Types

FieldReturnsDescription
titlestringSong title
thumbnailstringSong thumbnail (if any)
urlstringSong url
durationstringSong duration
artiststringSong author
platformstringTrack player platform
identifierstringTrack identifier
isSeekablebooleanReturn true if the track is seekable
isStreambooleanReturn true if the track is streaming
isrcstringTrack isrc
durationMsnumberSong duration in milliseconds
albumNamestringSong album name (if any)
albumUrlstringSong album url (if any)
artist.artworkUrlstringArtist artwork url (if any)
artist.urlstringArtist url (if any)

Example(s)

This will return given song’s information in the playlist

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