jump feature
This commit is contained in:
parent
705443fa7e
commit
c7b43ddce5
1 changed files with 1 additions and 1 deletions
|
@ -979,7 +979,7 @@ export class Player extends EventEmitter {
|
|||
jump(message: Message, track: Track | number): boolean {
|
||||
const toJUMP = this.remove(message, track);
|
||||
const queue = this.getQueue(message);
|
||||
if (!toJUMP || !queue) throw new PlayerError('Track not found');
|
||||
if (!toJUMP || !queue) throw new PlayerError('Specified Track not found');
|
||||
|
||||
queue.tracks.splice(1, 0, toJUMP);
|
||||
|
||||
|
|
Loading…
Reference in a new issue