From ef65dc5735020dd6346210780b7651a50338c396 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 28 Sep 2024 14:32:55 -0400 Subject: [PATCH] Add Dev Checks to SupportHelper --- src/plugins/_core/supportHelper.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index c44ce1bd..77e67ef2 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -180,7 +180,11 @@ export default definePlugin({ async CHANNEL_SELECT({ channelId }) { if (!SUPPORT_CHANNEL_IDS.includes(channelId)) return; - if (channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked) { + const selfId = UserStore.getCurrentUser()?.id; + if ( + channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked && !isEquicordPluginDev(selfId) || + channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked && !isPluginDev(selfId) + ) { clicked = true; return Alerts.show({ title: "You are entering the support channel!", @@ -199,7 +203,6 @@ export default definePlugin({ }); } - const selfId = UserStore.getCurrentUser()?.id; if (!selfId || isPluginDev(selfId) || isEquicordPluginDev(selfId)) return; if (!IS_UPDATER_DISABLED) {