Fix "You are not in the same voice channel" bug

This commit is contained in:
2022-03-03 22:48:23 +07:00
parent d7e5f5045f
commit b72b54c9d7
+2
View File
@@ -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);
});
}