$playlistSongInfo
$playlistSongInfo will return given song’s information in the playlist.
Usage
$playlistSongInfo[name;property;index;userId?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| name | string | Playlist name | true |
| property | string | Song information property you want to retrieve (see bellow) | true |
| index | number | Track position in the playlist | true |
| userID? | snowflake | User ID | false |
You require Playlist setup in your manager instance.
Types
| Field | Returns | Description |
|---|---|---|
| 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 |
| albumName | string | Song album name (if any) |
| albumUrl | string | Song album url (if any) |
| artist.artworkUrl | string | Artist artwork url (if any) |
| artist.url | string | Artist url (if any) |
Example(s)
This will return given song’s information in the playlist
1client.command({2 name: 'playlistsonginfo',3 code: `4 $playlistSongInfo[My Playlist;title;1]5 `6});This will return given song’s information in the playlist
1module.exports = [{2 name: "playlistsonginfo",3 code: `4 $playlistSongInfo[My Playlist;title;1]5 `6}]