Discord Player

Queue

No description provided

Queue

new Queue(strategy, initializer);
ParameterTypeOptional
strategyQueueStrategy
initializerArray<T>

Properties

public store: any

public strategy: any

public data: any

public size: any

Methods

public [custom](): string

public add(item): void

| Parameter | Type | Optional | | --------- | ---- | --------------------------------------------------------------------------------------------------- | --- | | item | T | Array<T> | ❌ |

public at(idx): undefined | T

ParameterTypeOptional
idxnumber

public clear(): void

public clone(): Queue<T>

public dispatch(): undefined | T

public every(itemFilter): boolean

ParameterTypeOptional
itemFilterQueueItemFilter<T | boolean>

public filter(itemFilter): Array<T>

ParameterTypeOptional
itemFilterQueueItemFilter<T | boolean>

public find(itemFilter): undefined | T

ParameterTypeOptional
itemFilterQueueItemFilter<T | boolean>

public isFIFO(): boolean

public isLIFO(): boolean

public map(itemFilter): Array<R>

ParameterTypeOptional
itemFilterQueueItemFilter<T | R>

public remove(itemFilter): void

ParameterTypeOptional
itemFilterQueueItemFilter<T | boolean>

public removeOne(itemFilter): void

ParameterTypeOptional
itemFilterQueueItemFilter<T | boolean>

public shuffle(): void

public some(itemFilter): boolean

ParameterTypeOptional
itemFilterQueueItemFilter<T | boolean>

public toArray(): Array<T>

public toJSON(): Array<T>

public toString(): string

public static from(data, strategy): Queue<T>

ParameterTypeOptional
dataArray<T>
strategyQueueStrategy