mirror of
https://github.com/Equicord/Equicord.git
synced 2025-03-04 08:20:02 -05:00
idfc
This commit is contained in:
parent
4992d89e82
commit
dadbd44aae
2 changed files with 17 additions and 2 deletions
15
src/equicordplugins/VCSupport/index.ts
Normal file
15
src/equicordplugins/VCSupport/index.ts
Normal 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
|
||||||
|
});
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue