Add fromPlaylist property to track class

This commit is contained in:
Androz2091 2020-07-11 11:09:40 +02:00
parent 7301cbe76d
commit b9cd8649c1
2 changed files with 7 additions and 1 deletions

View file

@ -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)))
}
}

View file

@ -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}