🐛 clearQueue() method now clears all the tracks
This commit is contained in:
parent
cd87f105b9
commit
fda820432f
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue