RemixMe by kvba

This commit is contained in:
thororen1234 2024-10-23 02:34:22 -04:00
parent df94c4a086
commit f7f2053e10
2 changed files with 23 additions and 1 deletions

View file

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

View file

@ -16,11 +16,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { migratePluginSettings } from "@api/Settings";
import { Devs } from "@utils/constants"; import { Devs } from "@utils/constants";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
migratePluginSettings("IloveSpam", "iLoveSpam");
export default definePlugin({ export default definePlugin({
name: "iLoveSpam", name: "ILoveSpam",
description: "Do not hide messages from 'likely spammers'", description: "Do not hide messages from 'likely spammers'",
authors: [Devs.botato, Devs.Nyako], authors: [Devs.botato, Devs.Nyako],
patches: [ patches: [