How to extract tracks from queue? #1660
|
I need to extract information (duration, name, etc.) about tracks from queue using |
Answered by
twlite
Mar 7, 2023
Replies: 1 comment 3 replies
|
Hello @danyaridiger, the tracks object in v6 is the internal Queue object (https://discord-player.js.org/docs/classes/@discord-player/utils/Queue) which provides methods such as |
3 replies
Answer selected by
danyaridiger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @danyaridiger, the tracks object in v6 is the internal Queue object (https://discord-player.js.org/docs/classes/@discord-player/utils/Queue) which provides methods such as
.toArray()to turn the queue into array of tracks,.at()to get the track at the given index and so on. Please refer to the link I provided in this message for all of the available methods.