From e19e5f7656e6fa35451358c6554ef79ca3b4c925 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 20 Oct 2019 21:29:57 +0300 Subject: [PATCH] Update play.js --- funcs/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/play.js b/funcs/play.js index 55b780a9..e89bfbd8 100644 --- a/funcs/play.js +++ b/funcs/play.js @@ -7,7 +7,7 @@ module.exports = async function (guild, song, client, message, seek) { client.queue.delete(guild.id); return; } - const dispatcher = message.guild.voiceConnection.playStream + const dispatcher = serverQueue.connection .playStream(ytdl(song.url, { filter: "audio", highWaterMark: 1 << 25 }), { seek: seek, bitrate: 1024, passes: 10, volume: 1 }) .on("end", reason => { if (reason === "Stream is not generating quickly enough.") {