Queue
Spicetify.Queue reads Spotify’s internal queue state each time you access it. It is undefined until the player has loaded.
const Queue: { track: ProvidedTrack; prevTracks: ProvidedTrack[]; nextTracks: ProvidedTrack[]; queueRevision: bigint;};| Property | Type | Description |
|---|---|---|
track | ProvidedTrack | The current track. |
prevTracks | ProvidedTrack[] | Tracks already played. |
nextTracks | ProvidedTrack[] | Tracks still to play, starting with the user’s queue. |
queueRevision | bigint | Spotify’s revision of the queue. |
This is a private Spotify object, and its shape can change between client versions.
const upNext = Spicetify.Queue?.nextTracks.slice(0, 5).map((track) => track.uri);