UNPKG

@persian-caesar/discord-player

Version:

Type definitions and helpers for a Discord music player (MusicPlayer) without external dependencies

17 lines (16 loc) 768 B
import { VoiceChannel, MusicPlayerOptions } from "./types"; import { MusicPlayer } from "./MusicPlayer"; export declare class PlayerManager { private static players; static getOrCreatePlayer(guildId: string, channel: VoiceChannel, initialVolume?: number, options?: MusicPlayerOptions): MusicPlayer; static getPlayer(guildId: string): MusicPlayer | undefined; static removePlayer(guildId: string): void; } /** * @copyright * Code by Sobhan-SRZA (mr.sinre) | https://github.com/Sobhan-SRZA * Developed for Persian Caesar | https://github.com/Persian-Caesar | https://dsc.gg/persian-caesar * * If you encounter any issues or need assistance with this code, * please make sure to credit "Persian Caesar" in your documentation or communications. */