Merge branch 'Snowflake107-patch-3' into develop

This commit is contained in:
Androz2091 2020-06-25 18:46:35 +02:00
commit 9862716b79

View file

@ -811,6 +811,8 @@ class Player {
seek: currentStreamTime
})
setTimeout(() => {
if (queue.stream) queue.stream.destroy()
queue.stream = newStream
queue.voiceConnection.play(newStream, {
type: 'opus'
})
@ -856,7 +858,6 @@ class Player {
const nowPlaying = queue.playing = queue.repeatMode ? wasPlaying : queue.tracks.shift()
// Reset lastSkipped state
queue.lastSkipped = false
this._playYTDLStream(queue, false).then(() => {
// Emit trackChanged event
if (!firstPlay) {