🐛 Fix seek method
This commit is contained in:
parent
569aaccc61
commit
877dc1be77
1 changed files with 1 additions and 1 deletions
|
@ -524,7 +524,7 @@ export class Player extends EventEmitter {
|
|||
if (!queue) return this.emit(PlayerEvents.ERROR, PlayerErrorEventCodes.NOT_PLAYING, message);
|
||||
|
||||
if (typeof time !== 'number' && !isNaN(time)) time = parseInt(time);
|
||||
if (queue.playing.durationMS >= time) return this.skip(message);
|
||||
if (queue.playing.durationMS <= time) return this.skip(message);
|
||||
if (
|
||||
queue.voiceConnection.dispatcher.streamTime === time ||
|
||||
queue.voiceConnection.dispatcher.streamTime + queue.additionalStreamTime === time
|
||||
|
|
Loading…
Reference in a new issue