51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
/*
|
|
* Vencord, a Discord client mod
|
|
* Copyright (c) 2025 Vendicated and contributors
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
import { addMessageAccessory, removeMessageAccessory } from "@api/MessageAccessories";
|
|
import definePlugin from "@utils/types";
|
|
import { Message } from "@vencord/discord-types";
|
|
|
|
import { IdiotWarning } from "./components/IdiotWarning";
|
|
import { VeryCool } from "./components/VeryCool";
|
|
|
|
function BigWarning({
|
|
message
|
|
}: {
|
|
message: Message;
|
|
}) {
|
|
return <>
|
|
<IdiotWarning message={message} />
|
|
<VeryCool message={message} />
|
|
</>;
|
|
}
|
|
|
|
export default definePlugin({
|
|
name: "BestPluginEver",
|
|
description: "Haha funny",
|
|
authors: [{
|
|
name: "ocbwoy3",
|
|
id: 486147449703104523n
|
|
}],
|
|
|
|
start() {
|
|
addMessageAccessory(
|
|
"BigWarning",
|
|
(props: Record<string, any>) => {
|
|
return (
|
|
<BigWarning
|
|
message={props.message as Message}
|
|
/>
|
|
);
|
|
},
|
|
4
|
|
);
|
|
},
|
|
|
|
stop() {
|
|
removeMessageAccessory("BigWarning");
|
|
}
|
|
});
|