Merge branch 'Snowflake107-patch-3' into develop
This commit is contained in:
commit
9862716b79
1 changed files with 2 additions and 1 deletions
|
@ -811,6 +811,8 @@ class Player {
|
||||||
seek: currentStreamTime
|
seek: currentStreamTime
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if (queue.stream) queue.stream.destroy()
|
||||||
|
queue.stream = newStream
|
||||||
queue.voiceConnection.play(newStream, {
|
queue.voiceConnection.play(newStream, {
|
||||||
type: 'opus'
|
type: 'opus'
|
||||||
})
|
})
|
||||||
|
@ -856,7 +858,6 @@ class Player {
|
||||||
const nowPlaying = queue.playing = queue.repeatMode ? wasPlaying : queue.tracks.shift()
|
const nowPlaying = queue.playing = queue.repeatMode ? wasPlaying : queue.tracks.shift()
|
||||||
// Reset lastSkipped state
|
// Reset lastSkipped state
|
||||||
queue.lastSkipped = false
|
queue.lastSkipped = false
|
||||||
|
|
||||||
this._playYTDLStream(queue, false).then(() => {
|
this._playYTDLStream(queue, false).then(() => {
|
||||||
// Emit trackChanged event
|
// Emit trackChanged event
|
||||||
if (!firstPlay) {
|
if (!firstPlay) {
|
||||||
|
|
Loading…
Reference in a new issue