From f7f2053e107f54073fecd36f57be7a8b4f7b2be0 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 23 Oct 2024 02:34:22 -0400 Subject: [PATCH] RemixMe by kvba --- src/equicordplugins/remixMe/index.tsx | 20 ++++++++++++++++++++ src/plugins/iLoveSpam/index.ts | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/equicordplugins/remixMe/index.tsx diff --git a/src/equicordplugins/remixMe/index.tsx b/src/equicordplugins/remixMe/index.tsx new file mode 100644 index 00000000..c22c5c56 --- /dev/null +++ b/src/equicordplugins/remixMe/index.tsx @@ -0,0 +1,20 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2023 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { MessageEvents } from "@api/index"; +import { MessageExtra, MessageObject } from "@api/MessageEvents"; +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +const handleMessage = (channelID: string, message: MessageObject, messageEx: MessageExtra) => messageEx.uploads && messageEx.uploads.forEach(att => (att as any).isRemix = true); + +export default definePlugin({ + name: "RemixMe", + description: "Turns every single message with attachment to have remix tag", + authors: [EquicordDevs.kvba], + start: () => MessageEvents.addPreSendListener(handleMessage), + stop: () => MessageEvents.removePreSendListener(handleMessage) +}); diff --git a/src/plugins/iLoveSpam/index.ts b/src/plugins/iLoveSpam/index.ts index bb0b2053..463a659b 100644 --- a/src/plugins/iLoveSpam/index.ts +++ b/src/plugins/iLoveSpam/index.ts @@ -16,11 +16,13 @@ * along with this program. If not, see . */ +import { migratePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; +migratePluginSettings("IloveSpam", "iLoveSpam"); export default definePlugin({ - name: "iLoveSpam", + name: "ILoveSpam", description: "Do not hide messages from 'likely spammers'", authors: [Devs.botato, Devs.Nyako], patches: [