Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[actions] getPlaylist

Talos51 edited this page May 29, 2015 · 5 revisions

getPlaylist(pid)

Returns a playlist by ID.


Parameters

pid number

ID of the playlist to retrieve.


Returns

Playlist Object if playlist is found ; otherwise null


Example

// Get playlist with ID 123456
bot.getPlaylist('123456');

// If playlist is found
{
      "active": true,
      "count": 10,
      "id": 123456,
      "name": "My Playlist 123456"
}
// Otherwise
null
Clone this wiki locally