✨ Add fromPlaylist property to track class
This commit is contained in:
parent
7301cbe76d
commit
b9cd8649c1
2 changed files with 7 additions and 1 deletions
|
@ -177,7 +177,8 @@ class Player {
|
||||||
duration: i.duration,
|
duration: i.duration,
|
||||||
thumbnail: i.thumbnail,
|
thumbnail: i.thumbnail,
|
||||||
author: i.author,
|
author: i.author,
|
||||||
link: i.url
|
link: i.url,
|
||||||
|
fromPlaylist: true
|
||||||
}, null, null)))
|
}, null, null)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,11 @@ class Track {
|
||||||
* @type {Discord.User?}
|
* @type {Discord.User?}
|
||||||
*/
|
*/
|
||||||
this.requestedBy = 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
|
* The queue in which the track is
|
||||||
* @type {Queue}
|
* @type {Queue}
|
||||||
|
|
Loading…
Reference in a new issue