From d3b66640fc5f8d9d10d99ac636b0132c90313f75 Mon Sep 17 00:00:00 2001 From: nin0dev Date: Thu, 23 Jan 2025 03:59:34 -0500 Subject: [PATCH] support managed APIs --- index.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.tsx b/index.tsx index f34694f..d2e4d84 100644 --- a/index.tsx +++ b/index.tsx @@ -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(savedFlags); } } - addAccessory("flag", (props: Record) => ( - - ), 4); + }, + renderMessageAccessory: (props: Record) => { + return ; }, commands: [ {