From 6c9ce7087379147f2fc11b1e1799fca6fb180bbe Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 20 Oct 2019 21:32:24 +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 e89bfbd8..55b780a9 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 = serverQueue.connection + const dispatcher = message.guild.voiceConnection.playStream .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.") {