support managed APIs
This commit is contained in:
parent
5cd3917d22
commit
d3b66640fc
1 changed files with 3 additions and 4 deletions
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue