SushiBtw / discord-music-player

Complete framework to facilitate music commands using discord.js v14 & v13.
https://discord-music-player.js.org/
MIT License
157 stars 65 forks source link

[BUG] Queue.move is not a function #314

Open Siris2314 opened 1 year ago

Siris2314 commented 1 year ago

Every time I attempt to use the move part of the Queue documentation, it throws an error, Queue.move() is not a function

/move(2,3)

The above command should move song at index 2 to index 3

image image
davidkhierl commented 1 year ago

@Siris2314 can you log the queue?

Siris2314 commented 1 year ago

Sure here is the logged queue

image image

It's songs from a playlist on YT

davidkhierl commented 1 year ago

@Siris2314 seems like the queue you got is not the queue class, base on the logs its a collection of the songs in queue

Siris2314 commented 1 year ago
image

It is printing the whole class, apologies my terminal was not big enough to handle the entire log, but yes it prints the entire Queue class itself

davidkhierl commented 1 year ago

if you console log the queue.move is it undefined? log it outside your condition

Siris2314 commented 1 year ago

Do you mean outside the conditional statements, the queue is logged before them:

image
securing-ab commented 1 year ago

The update containing the move feature hasn’t been released to NPM

Siris2314 commented 1 year ago

Interesting that it is listed on the documentation lmfao