Releases: lavalibs/lavaqueue
Releases · lavalibs/lavaqueue
v3.1.8
v3.1.7
v3.1.6
v3.1.5
v3.1.4
Fixes
- Tracks that end with exceptions when
advanceByreturns 0 no longer cause an infinite loop of play attempts
v3.1.3
Fixes
- Regression in client export
v3.1.2
Fixes
- Connection options are typed correctly
v3.1.1
Fixes
- Lavalink
NodeOptionsimports
v3.1.0
Additions
Queue#splicehas been added for easier insertion and deletion of elements after a given index; see Array#splice for information about the behavior and method signature
v3.0.0
Breaking changes
- Reorganized Redis keys and key types: existing databases should be flushed
listhas been renamed tonext,nphas been replaced with a simpleposindicator, andprevhas been added to keep track of previous songs
- Playlists will no longer advance when the player is stopped using the WebSocket
- Upgraded to
ioredisv4 lavalinkis now a direct dependency- Queues now clear themselves after the last song ends
Additions
Queue#sort(predicate?: (a: string, b: string) => number): Promise<number>has been added; does not operate on previous songs; resolves with length of the listQueue#move(from: number, to: number): Promise<string[]>has been added. Moves songs from one position to another by index; supports negative indices to wrap around list.; does not operate on previous songs Resolves with the new list.Queue#shuffle(): Promise<string[]>has been added; resolves with the new list; does not operate on previous songsQueue#clearnow returns a native Promise instead of PromiseLikeQueue#tracksnow returns a native Promise instead of PromiseLikeQueue#nextnow accepts negative numbers to advance the queue in reverseNPtypedef (represents a currently playing track) now will always have track and position properties.QueueStore#redishas been extended to include new custom commandslmove(key: string, from: number, to: number): Promise<string[]>moves elements in a list from one index to anotherloverride(key: string, ...args: any[]): Promise<number>will override a key with new list datalshuffle(key: string, seed: number): Promise<string[]>will shuffle elements of a listmultirpoplpush(source: string, dest: string, count: number): Promise<string[]>will rpoplpush multiple elements
Clientnow has anadvanceBy(queue: Queue, info: { previous: string, remaining: number }): numberwhich will be called in any situation where a track is ended and an advancement count has not been provided. This is typically called when a track ends naturally and the queue needs to determine how many tracks to advance.previousrepresents the track that just ended.remainingrepresents the number of songs left in the queue.Clientnow accepts anadvanceByproperty in constructor options