mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 13:53:34 -05:00
Add Dev Checks to SupportHelper
This commit is contained in:
parent
ea3dde2fe4
commit
ef65dc5735
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue