From 28d635f0a8e93a6e32df740d046a9ad907e3e795 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 8 Mar 2020 11:41:25 +0200 Subject: [PATCH] Update play.js --- struct/funcs/play.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/struct/funcs/play.js b/struct/funcs/play.js index fc2981c..4195649 100644 --- a/struct/funcs/play.js +++ b/struct/funcs/play.js @@ -4,7 +4,9 @@ module.exports = async function (guild, client, url) { const dispatcher = radio.connection .play(url, { bitrate: 1024, passes: 10, volume: 1, highWaterMark: 1 << 25 }) .on("finish", () => { + radio.voiceChannel.leave(); radio.delete(); + return; }); dispatcher.on('start', () => { dispatcher.player.streamingData.pausedTime = 0;