From 3b7c752adb432d82441e4d10805d0255394aa933 Mon Sep 17 00:00:00 2001 From: Sqaaakoi Date: Thu, 17 Oct 2024 17:42:42 +1300 Subject: [PATCH] cleanup --- index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.tsx b/index.tsx index 5f610cc..5da955a 100644 --- a/index.tsx +++ b/index.tsx @@ -88,7 +88,7 @@ export default definePlugin({ if (typeof savedFlags === "string") { userFlags = new Map(JSON.parse(savedFlags)); } else { - userFlags = new Map(savedFlags); + userFlags = new Map(savedFlags); } } addAccessory("flag", (props: Record) => ( @@ -108,9 +108,9 @@ export default definePlugin({ required: true }, { - "name": "type", - "type": ApplicationCommandOptionType.STRING, - "description": "The type of flag to add", + name: "type", + type: ApplicationCommandOptionType.STRING, + description: "The type of flag to add", choices: Object.entries(flagRegistry).map(([key, flag]) => ({ name: key, label: flag.label,