This commit is contained in:
thororen 2024-05-09 16:36:46 -04:00
parent 4992d89e82
commit dadbd44aae
2 changed files with 17 additions and 2 deletions

View file

@ -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
});

View file

@ -26,7 +26,7 @@ import { relaunch } from "@utils/native";
import { makeCodeblock } from "@utils/text"; import { makeCodeblock } from "@utils/text";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { isOutdated, update } from "@utils/updater"; 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 gitHash from "~git-hash";
import plugins from "~plugins"; import plugins from "~plugins";
@ -116,7 +116,7 @@ ${makeCodeblock(enabledPlugins.join(", "))}
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) return Alerts.show({ if (channelId === VC_SUPPORT_CHANNEL_ID && Vencord.Plugins.isPluginEnabled("VCSupport")) return Alerts.show({
title: "You are entering the support channel!", title: "You are entering the support channel!",
body: <div> body: <div>
<style> <style>