Skip to content

$playlistAddTrack

$playlistAddTrack will add new track to a playlist.

Usage

$playlistAddTrack[name;title;type?;userID?]

Parameters

Field Type Description Required
name string Playlist name true
title string track title or an url to add true
type? string Source type: youtube, youtubemusic, applemusic, soundcloud, spotify, deezer, etc. depends on your lavalink node false
userID? snowflake User ID false

You require Playlist setup in your manager instance.

Example(s)

This will add new track to a playlist

1
client.command({
2
name: 'addtrack',
3
code: `
4
$playlistAddTrack[My Playlist;Reckless]
5
`
6
});