fuga
Version:
A comprehensive, feature-rich, and modern Lavalink v4 client for Node.js
24 lines • 776 B
TypeScript
import { Track } from '../types';
/**
* A feature-rich queue for managing tracks.
*/
export declare class Queue extends Array<Track> {
/** The first track in the queue. */
get first(): Track | undefined;
/** The total size of the queue. */
get size(): number;
/** The total duration of the queue in milliseconds. */
get duration(): number;
/**
* Adds a track to the end of the queue.
* @param track The track or tracks to add.
*/
add(track: Track | Track[]): void;
/** Removes the first track from the queue and returns it. */
removeFirst(): Track | undefined;
/** Clears the entire queue. */
clear(): void;
/** Shuffles the tracks in the queue. */
shuffle(): void;
}
//# sourceMappingURL=Queue.d.ts.map