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