🐛 Add currentStreamTime to dispatcher time
This commit is contained in:
parent
53c58f3140
commit
5b6d1c496b
1 changed files with 3 additions and 0 deletions
|
@ -816,6 +816,9 @@ class Player {
|
|||
queue.voiceConnection.play(newStream, {
|
||||
type: 'opus'
|
||||
})
|
||||
if (currentStreamTime) {
|
||||
queue.voiceConnection.dispatcher.streamTime += currentStreamTime
|
||||
}
|
||||
queue.voiceConnection.dispatcher.setVolumeLogarithmic(queue.calculatedVolume / 200)
|
||||
// When the track starts
|
||||
queue.voiceConnection.dispatcher.on('start', () => {
|
||||
|
|
Loading…
Reference in a new issue