$playlistMoveTrack
$playlistMoveTrack will move a track to a new position in the playlist.
Usage
$playlistMoveTrack[name;from;to;userID?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| name | string | Playlist name | true |
| from | number | Old track position in the playlist | true |
| to | number | New track position in the playlist | true |
| userID? | snowflake | User ID | false |
You require Playlist setup in your manager instance.
Example(s)
This will move a track to a new position in the playlist
1client.command({2 name: 'movetrack',3 code: `4 $playlistMoveTrack[My Playlist;1;2]5 `6});This will move a track to a new position in the playlist
1module.exports = [{2 name: "movetrack",3 code: `4 $playlistMoveTrack[My Playlist;1;2]5 `6}]