mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-29 00:14:23 -04:00
This commit is contained in:
parent
88a2131eb2
commit
810b3e5b4a
1 changed files with 0 additions and 10 deletions
|
@ -5,10 +5,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
|
||||||
import { addMessagePreSendListener, MessageExtra, MessageObject, MessageSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
|
||||||
import { CodeBlock } from "@components/CodeBlock";
|
import { CodeBlock } from "@components/CodeBlock";
|
||||||
import ErrorBoundary from "@components/ErrorBoundary";
|
import ErrorBoundary from "@components/ErrorBoundary";
|
||||||
import { UploadWithRemix } from "@equicordplugins/remixMe/types";
|
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import { getIntlMessage } from "@utils/discord";
|
import { getIntlMessage } from "@utils/discord";
|
||||||
import { Margins } from "@utils/margins";
|
import { Margins } from "@utils/margins";
|
||||||
|
@ -127,8 +125,6 @@ function makeContextCallback(
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleMessage: MessageSendListener = (_: string, __: MessageObject, ex: MessageExtra) => ex.uploads && (ex.uploads as UploadWithRemix[]).forEach(att => console.log(att));
|
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "ViewRawVariant",
|
name: "ViewRawVariant",
|
||||||
description: "Copy/View raw content of any message, channel, or guild, but show in the right click menu.",
|
description: "Copy/View raw content of any message, channel, or guild, but show in the right click menu.",
|
||||||
|
@ -147,10 +143,4 @@ export default definePlugin({
|
||||||
openViewRawModal(cleanMessage(val), "Message", true),
|
openViewRawModal(cleanMessage(val), "Message", true),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
start() {
|
|
||||||
addMessagePreSendListener(handleMessage);
|
|
||||||
},
|
|
||||||
stop() {
|
|
||||||
removeMessagePreSendListener(handleMessage);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue