From 6dd85a104bb9e20e0cc2d4e839627be16ae0f3cf Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 6 Jun 2024 03:30:30 -0400 Subject: [PATCH] Updates --- README.md | 3 +- src/equicordplugins/copyEmojiID/index.tsx | 71 -------------------- src/equicordplugins/customAppIcons/index.tsx | 16 ++--- src/equicordplugins/emojiDumper/index.tsx | 6 +- src/plugins/_core/supportHelper.tsx | 2 +- src/plugins/serverListIndicators/index.tsx | 4 +- src/utils/constants.ts | 16 ----- 7 files changed, 13 insertions(+), 105 deletions(-) delete mode 100644 src/equicordplugins/copyEmojiID/index.tsx diff --git a/README.md b/README.md index 4cd526b6..6d0447b5 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,8 @@ An enhanced version of [Vencord](https://github.com/Vendicated/Vencord) by [Vend - BypassDND by Inbestigator - CleanChannelName by AutumnVN - ColorMessage by Kyuuhachi -- CopyEmojiAsFormattedString (CopyEmojiAsString) by HAPPY_ENDERMAN and VISHNYA_NET_CHERESHNYA - CopyUserMention by Cortex and castdrian -- CustomAppIcons by HAPPY_ENDERMAN and SerStars +- CustomAppIcons by Happy Enderman and SerStars - CustomScreenShare by KawaiianPizza - DNDWhilePlaying by thororen - DoNotLeak by Perny diff --git a/src/equicordplugins/copyEmojiID/index.tsx b/src/equicordplugins/copyEmojiID/index.tsx deleted file mode 100644 index 7f2c80c3..00000000 --- a/src/equicordplugins/copyEmojiID/index.tsx +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Vencord, a modification for Discord's desktop app - * Copyright (c) 2022 Vendicated and contributors - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . -*/ - -import { addContextMenuPatch, removeContextMenuPatch } from "@api/ContextMenu"; -import { definePluginSettings } from "@api/Settings"; -import { EquicordDevs } from "@utils/constants"; -import definePlugin, { OptionType } from "@utils/types"; -import { Clipboard, Menu, React } from "@webpack/common"; - -interface Emoji { - type: "emoji", - id: string, - name: string; -} - -const settings = definePluginSettings({ - formattedString: { - type: OptionType.BOOLEAN, - description: "Use formatted string instead of emoji ID.", - default: false - } -}); - -export default definePlugin({ - name: "CopyEmojiID", - description: "Adds button to copy emoji ID!", - authors: [EquicordDevs.HAPPY_ENDERMAN, EquicordDevs.ANIKEIPS], - settings, - - expressionPickerPatch(children, props) { - if (!children.find(element => element.props.id === "copy-emoji-id")) { - const data = props.target.dataset as Emoji; - const firstChild = props.target.firstChild as HTMLImageElement; - const isAnimated = firstChild && new URL(firstChild.src).pathname.endsWith(".gif"); - if (data.type === "emoji" && data.id) { - children.push(( - { - const formatted_emoji_string = settings.store.formattedString ? `${isAnimated ? "` : `${data.id}`; - Clipboard.copy(formatted_emoji_string); - }} - /> - )); - } - } - }, - start() { - addContextMenuPatch("expression-picker", this.expressionPickerPatch); - }, - stop() { - removeContextMenuPatch("expression-picker", this.expressionPickerPatch); - } -}); diff --git a/src/equicordplugins/customAppIcons/index.tsx b/src/equicordplugins/customAppIcons/index.tsx index c33f234b..31139455 100644 --- a/src/equicordplugins/customAppIcons/index.tsx +++ b/src/equicordplugins/customAppIcons/index.tsx @@ -17,7 +17,7 @@ */ import { Link } from "@components/Link"; -import { EquicordDevs } from "@utils/constants"; +import { Devs, EquicordDevs } from "@utils/constants"; import { localStorage } from "@utils/localStorage"; import { closeAllModals, openModal } from "@utils/modal"; import definePlugin from "@utils/types"; @@ -51,7 +51,7 @@ function removeAppIcon() { export default definePlugin({ name: "CustomAppIcons", description: "Add/upload custom (In-)App Icons.", - authors: [EquicordDevs.HAPPY_ENDERMAN, EquicordDevs.SerStars], + authors: [Devs.HappyEnderman, EquicordDevs.SerStars], patches: [ { find: ".PremiumUpsellTypes.APP_ICON_UPSELL", @@ -100,12 +100,12 @@ export default definePlugin({ <> How to use? - - Go to { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings tab. - Scroll down to "In-app Icons" and click on "Preview App Icon". - And upload your own custom icon! - You can only use links when you are uploading your Custom Icon. - + + Go to { e.preventDefault(); closeAllModals(); FluxDispatcher.dispatch({ type: "USER_SETTINGS_MODAL_SET_SECTION", section: "Appearance" }); }}>Appearance Settings tab. + Scroll down to "In-app Icons" and click on "Preview App Icon". + And upload your own custom icon! + You can only use links when you are uploading your Custom Icon. + ); } }); diff --git a/src/equicordplugins/emojiDumper/index.tsx b/src/equicordplugins/emojiDumper/index.tsx index b8ad78f3..2a80b64d 100644 --- a/src/equicordplugins/emojiDumper/index.tsx +++ b/src/equicordplugins/emojiDumper/index.tsx @@ -25,11 +25,7 @@ const Patch: NavContextMenuPatchCallback = (children, { guild }: { guild: Guild; export default definePlugin({ name: "emojiDumper", description: "Context menu to dump and download a server's emojis.", - authors: [ - EquicordDevs.Cortex, - Devs.Samwich, - EquicordDevs.Woosh, - ], + authors: [EquicordDevs.Cortex, Devs.Samwich, EquicordDevs.Woosh], start() { addContextMenuPatch(["guild-context", "guild-header-popout"], Patch); }, diff --git a/src/plugins/_core/supportHelper.tsx b/src/plugins/_core/supportHelper.tsx index dd126881..6b2cfc3e 100644 --- a/src/plugins/_core/supportHelper.tsx +++ b/src/plugins/_core/supportHelper.tsx @@ -55,7 +55,7 @@ export default definePlugin({ name: "SupportHelper", required: true, description: "Helps us provide support to you", - authors: [Devs.Ven, EquicordDevs.thororen, EquicordDevs.coolesding], + authors: [Devs.Ven, EquicordDevs.thororen], dependencies: ["CommandsAPI"], patches: [{ diff --git a/src/plugins/serverListIndicators/index.tsx b/src/plugins/serverListIndicators/index.tsx index 1fd01338..50125e69 100644 --- a/src/plugins/serverListIndicators/index.tsx +++ b/src/plugins/serverListIndicators/index.tsx @@ -20,7 +20,7 @@ import { addServerListElement, removeServerListElement, ServerListRenderPosition import { Settings } from "@api/Settings"; import { enableStyle } from "@api/Styles"; import ErrorBoundary from "@components/ErrorBoundary"; -import { Devs } from "@utils/constants"; +import { Devs, EquicordDevs } from "@utils/constants"; import { useForceUpdater } from "@utils/react"; import definePlugin, { OptionType } from "@utils/types"; import { GuildStore, PresenceStore, RelationshipStore, Tooltip } from "@webpack/common"; @@ -111,7 +111,7 @@ function handleGuildUpdate() { export default definePlugin({ name: "ServerListIndicators", description: "Add online friend count or server count in the server list", - authors: [Devs.dzshn], + authors: [Devs.dzshn, EquicordDevs.Panniku], dependencies: ["ServerListAPI"], options: { diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 14477be4..b1b17818 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -599,14 +599,6 @@ export const EquicordDevs = Object.freeze({ name: "krystalskullofficial", id: 929208515883569182n }, - puv: { - name: "puv", - id: 469441552251355137n - }, - HAPPY_ENDERMAN: { - name: "Happy enderman", - id: 1083437693347827764n - }, SerStars: { name: "SerStars", id: 861631850681729045n @@ -627,10 +619,6 @@ export const EquicordDevs = Object.freeze({ name: "Megal", id: 387790666484285441n }, - VISHNYA_NET_CHERESHNYA: { - name: "Vishnya", - id: 282541644484575233n, - }, Cortex: { name: "Cortex", id: 825069530376044594n, @@ -675,10 +663,6 @@ export const EquicordDevs = Object.freeze({ name: "Fafa", id: 428188716641812481n, }, - ANIKEIPS: { - name: "AniKeiPS", - id: 472052944582213634n - }, } satisfies Record); // iife so #__PURE__ works correctly