HoshimiQueueOptions
The queue options.
Signature
export interface HoshimiQueueOptionsProperties
3Methods
1Properties
maxHistory?: number;The maximum amount of tracks that can be saved in the queue.
@type{number}@default25
autoPlay?: boolean;Enable the auto play for the queue. (By default, only supports `youtube` and `spotify`, add more with your own function)
@type{boolean}@defaultfalse
storage?: QueueStorageAdapter;The storage manager to use for the queue.
@type{QueueStorageAdapter}@default{QueueMemoryStorage}
Methods
autoplayFn?(player: PlayerStructure, lastTrack: TrackResolvableStructure | null): Awaitable<void>;The function to use for autoplay.
Parameters
player- The player.
lastTrack- The last track played.