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,