lavalibs / lavaqueue

A queue system for Lavalink, backed by Redis.
MIT License
27 stars 2 forks source link

retrieves skipped tracks in queue#next() #2

Open iiAbady opened 5 years ago

appellation commented 5 years ago

Can you provide some clarification please? Is there a bug occurring with skipping tracks?

iiAbady commented 5 years ago

It's a feature, you reslove the next() promise with the skipped tracks that the next() method have skipped. For example:

const queue = this.lavalink.queues.get('some id');
queue.next(2).then(skipped => {
const decoded = await this.lavalink.decode(skipped)
console.log(decoded)
})