jump feature

This commit is contained in:
Snowflake107 2021-04-24 00:15:45 +05:45
parent 705443fa7e
commit c7b43ddce5

View file

@ -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);