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

[actions] addSongToPlaylist

Talos51 edited this page Aug 12, 2015 · 2 revisions

addSongToPlaylist(playlistID, songID[, callback])

Add a song to a playlist.


Parameters

playlistID number

The ID of the playlist to add to.

songID number

The ID of the song to add.

callback function (optional)

Callback function to be called with data from server.


Returns

true if request queued; otherwise false


Example

// Add song with ID abcdef to playlist with ID 123456789
bot.addSongToPlaylist(123456789, abcdef);
Clone this wiki locally