Discord Player

GuildQueueHistory

No description provided

GuildQueueHistory

new GuildQueueHistory(queue);
ParameterTypeOptional
queueGuildQueue<Meta>

Properties

public queue: any

public tracks: any

public currentTrack: any

Current track in the queue

public disabled: any

If history is disabled

public nextTrack: any

Next track in the queue

public previousTrack: any

Previous track in the queue

public size: any

Gets the size of the queue

Methods

public back(preserveCurrent): Promise<void>

Alias to [GuildQueueHistory].previous()

ParameterTypeOptional
preserveCurrentboolean

public clear(): void

Clear history

public getSize(): number

public isEmpty(): boolean

If history is empty

public next(): Promise<void>

Play the next track in the queue

public previous(preserveCurrent): Promise<void>

Play the previous track in the queue

ParameterTypeOptional
preserveCurrentboolean

public push(track): boolean

Add track to track history

ParameterTypeOptionalDescription
trackTrack<unknown>Array<Track<unknown>>The track to add

public resize(): void

Resize history store