Replace ytdl-core with play-dl to avoid connection issues

This commit is contained in:
Marius Begby committed 2023-07-08 14:34:30 +02:00
1 parent ac1cd87dd2
commit c91a7174c8
3 files changed
+21 -46

No files matched your search

+1 -6
View File
@@ -31,12 +31,7 @@ for (const file of systemCommandFiles) {
}
// Create a new Player, and attach it to the bot client.
const player = new Player(client, {
ytdlOptions: {
quality: 'highestaudio',
highWaterMark: 1 << 25
}
});
const player = new Player(client);
player.events.on('error', (queue, error) => {
// Emitted when the player queue encounters error