/ src / cache / players.ts
players.ts
 1  import { AudioPlayer, VoiceConnection } from "@discordjs/voice";
 2  import { stationType } from "../typings/firebase";
 3  
 4  export const players: Map<string, {
 5      player: AudioPlayer;
 6      connection: VoiceConnection;
 7      looping: boolean;
 8      currentTrack: stationType<false>;
 9      paused: boolean;
10      user: string;
11      startedAt: number;
12  }> = new Map();
13  export const playlists: Map<string, stationType<false>[]> = new Map();