How to extract tracks from queue? #1660
-
I need to extract information (duration, name, etc.) about tracks from queue using |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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.