@necord/lavalink
Version:
A implementation of lavalink-client for Necord
19 lines (18 loc) • 739 B
TypeScript
import { ChatInputCommandInteraction, Client, Message, TextChannel, VoiceChannel } from 'discord.js';
import { LavalinkManager, Player } from 'lavalink-client';
export declare class NecordLavalinkService {
private readonly lavalinkManager;
private readonly client;
constructor(lavalinkManager: LavalinkManager, client: Client);
lavalinkUtils: import("lavalink-client").ManagerUtils;
extractInfoForPlayer(base: Message | ChatInputCommandInteraction): {
guildId: string;
voiceChannelId: string;
textChannelId: string;
};
extractPlayerData(player: Player): Promise<{
guild: import("discord.js").Guild;
voiceChannel: VoiceChannel;
textChannel: TextChannel;
}>;
}