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

[actions] playlistMoveMedia

Talos51 edited this page Aug 12, 2015 · 3 revisions

plyalistMoveMedia(playlistID, songID, before_songID[, callback])

Move one or multiple song(s) in a playlist before an another song.


Parameters

playlistID number

The ID of the playlist to manage.

songID number | array[number]

The ID(s) of the song(s) to move.

before_songID number

The ID of the song before the new index.

callback function (optional)

Callback function to be called with data from server.


Returns

true if request queued; otherwise false


Example

// Move song with ID abcdef in playlist with ID 123456789 before song with ID uwvxyz
bot.playlistMoveMedia(123456789, abcdef, uvwxyz);

// Move songs with IDs abcdef, ghijkl, mnopqr in playlist with ID 123456789 before song with ID uwvxyz
var songs = [abcdef, ghijkl, mnopqr];
bot.playlistMoveMedia(123456789, songs, uvwxyz);
Clone this wiki locally