mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-29 00:14:23 -04:00
Did a little oopsie on remixMe
+ Replaced remixMe's imports and methods with actual working ones
This commit is contained in:
parent
8dda07123b
commit
84cea4d319
1 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue