Compare commits

..

2 commits

View file

@ -6,7 +6,6 @@
import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext, findOption, sendBotMessage } from "@api/Commands";
import { DataStore } from "@api/index";
import { addAccessory } from "@api/MessageAccessories";
import { Devs } from "@utils/constants";
import definePlugin from "@utils/types";
import { Parser, React, Text } from "@webpack/common";
@ -90,9 +89,9 @@ export default definePlugin({
userFlags = new Map<string, Flag>(savedFlags);
}
}
addAccessory("flag", (props: Record<string, any>) => (
<Flag id={props.message.author.id} />
), 4);
},
renderMessageAccessory: (props: Record<string, any>) => {
return <Flag id={props.message.author.id} />;
},
commands: [
{