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: [