🐛 clearQueue() method now clears all the tracks

This commit is contained in:
Androz2091 2020-07-23 08:03:45 +02:00
parent cd87f105b9
commit fda820432f

View file

@ -553,8 +553,7 @@ class Player {
const queue = this.queues.find((g) => g.guildID === guildID)
if (!queue) return reject(new Error('Not playing'))
// Clear queue
const currentlyPlaying = queue.tracks.shift()
queue.tracks = [currentlyPlaying]
queue.tracks = []
// Resolve guild queue
resolve(queue)
})