File size: 455 Bytes
3b1b29f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import { AudioPlayer, createAudioPlayer, VoiceConnection } from '@discordjs/voice';

export class MusicQueue {
  songs: { title: string; url: string; duration: number; thumbnail: string; requestedBy: string }[] = [];
  playing: boolean = false;
  player: AudioPlayer = createAudioPlayer();
  connection: VoiceConnection | null = null;
  currentSong: { title: string; url: string; duration: number; thumbnail: string; requestedBy: string } | null = null;
}