From dadbd44aaed58f90b4f65eaab9000ebd5085b1d4 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Thu, 9 May 2024 16:36:46 -0400 Subject: [PATCH] idfc --- src/equicordplugins/VCSupport/index.ts | 15 +++++++++++++++ src/plugins/_core/supportHelper.tsx | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/equicordplugins/VCSupport/index.ts diff --git a/src/equicordplugins/VCSupport/index.ts b/src/equicordplugins/VCSupport/index.ts new file mode 100644 index 00000000..8acc7866 --- /dev/null +++ b/src/equicordplugins/VCSupport/index.ts @@ -0,0 +1,15 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2024 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "VCSupport", + description: "Wumpus Dance + Support Warning", + authors: [EquicordDevs.thororen], + enabledByDefault: true +}); diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index 0a8b3be3..1f2ef232 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -26,7 +26,7 @@ import { relaunch } from "@utils/native"; import { makeCodeblock } from "@utils/text"; import definePlugin from "@utils/types"; import { isOutdated, update } from "@utils/updater"; -import { Alerts, Card, ChannelStore, Forms, GuildMemberStore, NavigationRouter, Parser, RelationshipStore, UserStore } from "@webpack/common"; +import { Alerts, Card, ChannelStore, Forms, GuildMemberStore, Parser, RelationshipStore, UserStore } from "@webpack/common"; import gitHash from "~git-hash"; import plugins from "~plugins"; @@ -116,7 +116,7 @@ ${makeCodeblock(enabledPlugins.join(", "))} async CHANNEL_SELECT({ channelId }) { if (!SUPPORT_CHANNEL_IDS.includes(channelId)) return; - if (channelId === VC_SUPPORT_CHANNEL_ID) return Alerts.show({ + if (channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport")) return Alerts.show({ title: "You are entering the support channel!", body: