Add Dev Checks to SupportHelper

This commit is contained in:
thororen1234 2024-09-28 14:32:55 -04:00
parent ea3dde2fe4
commit ef65dc5735

View file

@ -180,7 +180,11 @@ export default definePlugin({
async CHANNEL_SELECT({ channelId }) { async CHANNEL_SELECT({ channelId }) {
if (!SUPPORT_CHANNEL_IDS.includes(channelId)) return; 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; clicked = true;
return Alerts.show({ return Alerts.show({
title: "You are entering the support channel!", 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 (!selfId || isPluginDev(selfId) || isEquicordPluginDev(selfId)) return;
if (!IS_UPDATER_DISABLED) { if (!IS_UPDATER_DISABLED) {