From 9875dbdbffa238b89753702d71e25762e25cf11a Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 30 Jan 2022 20:25:34 +0700 Subject: [PATCH] Add missing message check --- src/discord/MusicPlayer/Join.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/discord/MusicPlayer/Join.ts b/src/discord/MusicPlayer/Join.ts index e025457..7c3995a 100644 --- a/src/discord/MusicPlayer/Join.ts +++ b/src/discord/MusicPlayer/Join.ts @@ -128,7 +128,8 @@ export async function joinVoiceChannelProcedure (data: Interaction | Message, in instance = DiscordMusicPlayer.getGuildInstance(data.guildId); 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;