mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
RemixMe by kvba
This commit is contained in:
parent
df94c4a086
commit
f7f2053e10
2 changed files with 23 additions and 1 deletions
20
src/equicordplugins/remixMe/index.tsx
Normal file
20
src/equicordplugins/remixMe/index.tsx
Normal 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)
|
||||||
|
});
|
|
@ -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: [
|
||||||
|
|
Loading…
Reference in a new issue