Did a little oopsie on remixMe

+ Replaced remixMe's imports and methods with actual working ones
This commit is contained in:
meowabyte 2025-06-14 22:38:45 +02:00
parent 8dda07123b
commit 84cea4d319
No known key found for this signature in database
GPG key ID: C55D514608395F1F

View file

@ -4,8 +4,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { MessageEvents } from "@api/index";
import type { MessageExtra, MessageObject, MessageSendListener } from "@api/MessageEvents";
import { addMessagePreSendListener, type MessageExtra, type MessageObject, type MessageSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
import { EquicordDevs } from "@utils/constants";
import definePlugin from "@utils/types";
@ -19,6 +18,6 @@ export default definePlugin({
name: "RemixMe",
description: "Turns every single message with attachment to have remix tag",
authors: [EquicordDevs.meowabyte],
start: () => MessageEvents.addMessagePreSendListener(handleMessage),
stop: () => MessageEvents.addMessagePreSendListener(handleMessage)
start: () => addMessagePreSendListener(handleMessage),
stop: () => removeMessagePreSendListener(handleMessage)
});