mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43:35 -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 }) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue