diff --git a/src/equicordplugins/VCSupport/index.ts b/src/equicordplugins/VCSupport/index.ts new file mode 100644 index 000000000..8acc78668 --- /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 0a8b3be31..1f2ef2327 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: