From b72b54c9d782a668207562b5350230561dbc8672 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 3 Mar 2022 22:48:23 +0700 Subject: [PATCH] Fix "You are not in the same voice channel" bug --- src/discord/MusicPlayer/Join.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/discord/MusicPlayer/Join.ts b/src/discord/MusicPlayer/Join.ts index c22e6b8..b13b844 100644 --- a/src/discord/MusicPlayer/Join.ts +++ b/src/discord/MusicPlayer/Join.ts @@ -178,6 +178,8 @@ export async function joinVoiceChannelProcedure (data: Interaction | Message, in if (event.instance.textChannel) { await sendMessage(event.instance.textChannel, undefined, { embeds: [EMBEDS.VOICECHANNEL_DISCONNECTED(data)] }); } + + DiscordMusicPlayer.destoryGuildInstance(event.instance.voiceChannel.guildId); }); }