From b2213067b0bf0700168c6ccc1a66e98312d1e3fc Mon Sep 17 00:00:00 2001 From: verticalsync <60797172+verticalsync@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:37:42 +0300 Subject: [PATCH] fix(voiceChannelLog): dont log to channel if mode is menu only --- src/equicordplugins/voiceChannelLog/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/equicordplugins/voiceChannelLog/index.tsx b/src/equicordplugins/voiceChannelLog/index.tsx index e702a2f3..3d0631ca 100644 --- a/src/equicordplugins/voiceChannelLog/index.tsx +++ b/src/equicordplugins/voiceChannelLog/index.tsx @@ -66,7 +66,9 @@ function getMessageFlags(selfInChannel: boolean) { } function sendVoiceStatusMessage(channelId: string, content: string, userId: string, selfInChannel: boolean): Message | null { + if (settings.store.mode === 1) return null; if (!channelId) return null; + const message: Message = createBotMessage({ channelId, content, embeds: [] }); message.flags = getMessageFlags(selfInChannel); message.author = UserStore.getUser(userId);