more fixes and stuff guh #2

Merged
nin0 merged 5 commits from Sqaaakoi-VencordUserPlugins/userflags-fork:more-fixes into main 2024-10-19 06:13:42 -04:00
Showing only changes of commit 3b7c752adb - Show all commits

View file

@ -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,