Queue
Overview
Properties
• current
The current track.
Type Value Track or UnresolvedTrack or null null
• duration
The total time of the queue.
Type number
• size
The size of tracks in the queue.
Type number
• previous
The past track.
Type number
• totalSize
The total size of tracks in the queue including the current track.
Type number
Methods
• add()
Adds a track to the queue.
Returns:
void
Parameter type track Track Optional
offsetnumber
• clear()
Description Returns Clears the queue. void
• remove()
Removes a track from the queue. Defaults to the first track, returning the removed track, excluding the
current
track.Returns:
Track[]
Parameter type Optional
positionnumber
• remove()
Removes an amount of tracks using a exclusive start and end exclusive index, returning the removed tracks, excluding the
current
track.Returns:
Track
|UnresolvedTrack[]
Parameter type start number end number
• shuffle()
Description Returns Mixes the queue. void
Table of Contents