more fixes and stuff guh #2
1 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ export default definePlugin({
|
|||
if (typeof savedFlags === "string") {
|
||||
userFlags = new Map<string, Flag>(JSON.parse(savedFlags));
|
||||
} else {
|
||||
userFlags = new Map(savedFlags);
|
||||
userFlags = new Map<string, Flag>(savedFlags);
|
||||
}
|
||||
}
|
||||
addAccessory("flag", (props: Record<string, any>) => (
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue