🐛 Use queue#playing for nowPlaying() function

This commit is contained in:
Androz2091 2020-06-24 11:12:57 +02:00
parent 347750ec06
commit f98a8d73ab

View file

@ -527,7 +527,7 @@ class Player {
// Get guild queue
const queue = this.queues.find((g) => g.guildID === guildID)
if (!queue) return reject(new Error('Not playing'))
const currentTrack = queue.tracks[0]
const currentTrack = queue.playing
// Resolve the current track
resolve(currentTrack)
})