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

[actions] getActivePlaylist

Christopher Nelson edited this page Dec 22, 2016 · 4 revisions

getActivePlaylist([callback])

Returns the active playlist.


Parameters

callback function (optional)

Callback function to be called with data (Playlist Object if there's an active playlist; otherwise null) from server.


Returns

null


Example

// Get active playlist
bot.getActivePlaylist();

// If there's an active playlist
{
      "active": true,
      "count": 10,
      "id": 123456,
      "name": "My Active Playlist."
}
// Otherwise
null
Clone this wiki locally