diff --git a/src/Player.js b/src/Player.js index 52db046..0308ba4 100644 --- a/src/Player.js +++ b/src/Player.js @@ -177,7 +177,8 @@ class Player { duration: i.duration, thumbnail: i.thumbnail, author: i.author, - link: i.url + link: i.url, + fromPlaylist: true }, null, null))) } } diff --git a/src/Track.js b/src/Track.js index 91cf172..24ac3f3 100644 --- a/src/Track.js +++ b/src/Track.js @@ -51,6 +51,11 @@ class Track { * @type {Discord.User?} */ this.requestedBy = user + /** + * Whether the track was added from a playlist + * @type {boolean} + */ + this.fromPlaylist = videoData.fromPlaylist ?? false /** * The queue in which the track is * @type {Queue}