chore: init
This commit is contained in:
50
bestPluginEVER/index.tsx
Normal file
50
bestPluginEVER/index.tsx
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user