🐛 Fix createProgressBar() method
This commit is contained in:
parent
9db99b2920
commit
4b133c7ec9
1 changed files with 3 additions and 1 deletions
|
@ -762,7 +762,9 @@ class Player {
|
||||||
const queue = this.queues.find((g) => g.guildID === guildID)
|
const queue = this.queues.find((g) => g.guildID === guildID)
|
||||||
if (!queue) return
|
if (!queue) return
|
||||||
// Stream time of the dispatcher
|
// 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
|
// Total stream time
|
||||||
const totalTime = queue.playing.durationMS
|
const totalTime = queue.playing.durationMS
|
||||||
// Stream progress
|
// Stream progress
|
||||||
|
|
Loading…
Reference in a new issue