@globalart/nestcord
Version:
A module for creating Discord bots using NestJS, based on Discord.js
10 lines (9 loc) • 425 B
TypeScript
import { DestroyReasonsType, LavalinkManager, Player, PlayerOptions } from 'lavalink-client';
export declare class PlayerManager {
private readonly lavalinkManager;
constructor(lavalinkManager: LavalinkManager);
get(guildId: string): Player;
create(options: PlayerOptions): Player;
destroy(guildId: string, destroyReason?: DestroyReasonsType): Promise<void | Player>;
delete(guildId: string): void;
}