🐛 Fix createProgressBar() method

This commit is contained in:
Androz2091 2020-07-28 15:21:11 +02:00
parent 9db99b2920
commit 4b133c7ec9

View file

@ -762,7 +762,9 @@ class Player {
const queue = this.queues.find((g) => g.guildID === guildID)
if (!queue) return
// Stream time of the dispatcher
const currentStreamTime = queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime
const currentStreamTime = queue.voiceConnection.dispatcher
? queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime
: 0
// Total stream time
const totalTime = queue.playing.durationMS
// Stream progress