Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retrieves skipped tracks in queue#next() #2

Open
iiAbady opened this issue Apr 2, 2019 · 2 comments
Open

retrieves skipped tracks in queue#next() #2

iiAbady opened this issue Apr 2, 2019 · 2 comments
Labels
breaking Change breaks the API enhancement New feature or request

Comments

@iiAbady
Copy link

iiAbady commented Apr 2, 2019

No description provided.

@iiAbady iiAbady changed the title retrieves skipped tracks in queue#skip() retrieves skipped tracks in queue#next() Apr 2, 2019
@appellation
Copy link
Member

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

@iiAbady
Copy link
Author

iiAbady commented Apr 3, 2019

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)
})

@appellation appellation added breaking Change breaks the API enhancement New feature or request labels Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Change breaks the API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants