Skip to content
toddynnn edited this page Dec 31, 2024 · 2 revisions

Queue system of AquaLink (blehh)


  • size: The number of tracks currently in the queue.
  • first: The first track in the queue.
  • last: The last track in the queue.
  • .add(track): Adds a track to the end of the queue.
  • .remove(): Removes and returns the first track from the queue.
  • .clear(): Clears all tracks from the queue.
  • .shuffle(): Randomizes the order of tracks in the queue.
  • .peek(): Returns the first track in the queue without removing it.
  • .toArray(): Converts the queue to an array of tracks.
  • .at(index): Retrieves the track at the specified index in the queue.
  • .dequeue(): Removes the first track from the queue (similar to remove).
  • .isEmpty(): Checks if the queue is empty (returns true/false).
  • .enqueue(track): Re-add the track.

Clone this wiki locally