From 4b133c7ec9c62c4fe60c14a7b55bf90dbfe08670 Mon Sep 17 00:00:00 2001 From: Androz2091 Date: Tue, 28 Jul 2020 15:21:11 +0200 Subject: [PATCH] :bug: Fix createProgressBar() method --- src/Player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Player.js b/src/Player.js index 5e8607d..82b1203 100644 --- a/src/Player.js +++ b/src/Player.js @@ -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