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

[actions] getPlaylists

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

getPlaylists([callback])

Retrieve all playlists.


Parameters

callback function (optional)

Callback function to be called with data (Array) from server.


Returns

true if request queued; otherwise false


Example

// Retrieve all playlists
bot.getPlaylists();
/*
{
 "active": true,
 "count": 183,
 "id": 123456,
 "name": "My Active Playlist."
}
{
 "active": false,
 "count": 12,
 "id": 1234567,
 "name": "My Inactive Playlist."
}
*/
Clone this wiki locally