Fix Checks

This commit is contained in:
thororen1234 2024-09-28 14:35:56 -04:00
parent ef65dc5735
commit 157a363235

View file

@ -181,10 +181,8 @@ export default definePlugin({
if (!SUPPORT_CHANNEL_IDS.includes(channelId)) return; if (!SUPPORT_CHANNEL_IDS.includes(channelId)) return;
const selfId = UserStore.getCurrentUser()?.id; const selfId = UserStore.getCurrentUser()?.id;
if ( if (!selfId || isPluginDev(selfId) || isEquicordPluginDev(selfId)) return;
channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked && !isEquicordPluginDev(selfId) || if (channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport") && !clicked) {
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!",
@ -203,8 +201,6 @@ export default definePlugin({
}); });
} }
if (!selfId || isPluginDev(selfId) || isEquicordPluginDev(selfId)) return;
if (!IS_UPDATER_DISABLED) { if (!IS_UPDATER_DISABLED) {
await checkForUpdatesOnce().catch(() => { }); await checkForUpdatesOnce().catch(() => { });