From f212046bfbbd93c7d529ee062284681a4e2832f7 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 18 Apr 2022 23:10:13 -0600 Subject: [PATCH] music: fix leaving --- src/modules/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/music.js b/src/modules/music.js index f43ca29..b6a836a 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -515,7 +515,7 @@ command.callback = async function (msg, line) { connection._music_queue = []; connection._music_leave = true; await connection.stopPlaying(); - await hf.bot.leaveVoiceChannel(); + await hf.bot.leaveVoiceChannel(msg.member.voiceState.channelID); return {reaction: "\uD83D\uDC4B"}; } else { return "You are not in a voice channel.";