🐛 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)
|
const queue = this.queues.find((g) => g.guildID === guildID)
|
||||||
if (!queue) return reject(new Error('Not playing'))
|
if (!queue) return reject(new Error('Not playing'))
|
||||||
// Clear queue
|
// Clear queue
|
||||||
const currentlyPlaying = queue.tracks.shift()
|
queue.tracks = []
|
||||||
queue.tracks = [currentlyPlaying]
|
|
||||||
// Resolve guild queue
|
// Resolve guild queue
|
||||||
resolve(queue)
|
resolve(queue)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue