Create MusicQueue.ts
Browse files- utils/MusicQueue.ts +9 -0
utils/MusicQueue.ts
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { AudioPlayer, createAudioPlayer, VoiceConnection } from '@discordjs/voice';
|
2 |
+
|
3 |
+
export class MusicQueue {
|
4 |
+
songs: { title: string; url: string; duration: number; thumbnail: string; requestedBy: string }[] = [];
|
5 |
+
playing: boolean = false;
|
6 |
+
player: AudioPlayer = createAudioPlayer();
|
7 |
+
connection: VoiceConnection | null = null;
|
8 |
+
currentSong: { title: string; url: string; duration: number; thumbnail: string; requestedBy: string } | null = null;
|
9 |
+
}
|