Add missing message check

This commit is contained in:
2022-01-30 20:25:34 +07:00
parent 346207fe9e
commit 9875dbdbff
+2 -1
View File
@@ -128,7 +128,8 @@ export async function joinVoiceChannelProcedure (data: Interaction | Message, in
instance = DiscordMusicPlayer.getGuildInstance(data.guildId); instance = DiscordMusicPlayer.getGuildInstance(data.guildId);
instance!.joinVoiceChannel(voiceChannel, data.channel); instance!.joinVoiceChannel(voiceChannel, data.channel);
await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.VOICECHANNEL_JOINED(data)] }); if(!isAcceptableInteraction)
await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.VOICECHANNEL_JOINED(data)] });
} }
if (!instance) return; if (!instance) return;