From e02a25ef52229494cbd9f554ff1e6d101c8a81a5 Mon Sep 17 00:00:00 2001 From: Rayanzay Date: Sat, 31 May 2025 15:56:59 +1000 Subject: [PATCH] feat(settings): enhance user tag settings with additional options --- .../betterforwardmeta/index.tsx | 1 + src/equicordplugins/moreUserTags/settings.ts | 15 +++++++ src/equicordplugins/moreUserTags/settings.tsx | 39 +++++++++---------- 3 files changed, 35 insertions(+), 20 deletions(-) diff --git a/src/equicordplugins/betterforwardmeta/index.tsx b/src/equicordplugins/betterforwardmeta/index.tsx index c7b48853..0109a648 100644 --- a/src/equicordplugins/betterforwardmeta/index.tsx +++ b/src/equicordplugins/betterforwardmeta/index.tsx @@ -28,6 +28,7 @@ export default definePlugin({ guild_id !== SelectedGuildStore.getGuildId() && } + targetElementRef={{} as any} // Add ref to satisfy type checking > {popoutProps =>
{ diff --git a/src/equicordplugins/moreUserTags/settings.ts b/src/equicordplugins/moreUserTags/settings.ts index cdce72c9..29846f53 100644 --- a/src/equicordplugins/moreUserTags/settings.ts +++ b/src/equicordplugins/moreUserTags/settings.ts @@ -17,5 +17,20 @@ export const settings = definePluginSettings({ type: OptionType.STRING, description: "Text to display for special users", default: "Special", + }, + dontShowBotTag: { + type: OptionType.BOOLEAN, + description: "Don't show bot tag", + default: false + }, + dontShowForBots: { + type: OptionType.BOOLEAN, + description: "Don't show tags for bots", + default: false + }, + tagSettings: { + type: OptionType.COMPONENT, + description: "Tag Settings", + component: () => null // This will be handled by the SettingsComponent in settings.tsx } }); diff --git a/src/equicordplugins/moreUserTags/settings.tsx b/src/equicordplugins/moreUserTags/settings.tsx index d556a21b..9519abda 100644 --- a/src/equicordplugins/moreUserTags/settings.tsx +++ b/src/equicordplugins/moreUserTags/settings.tsx @@ -85,30 +85,29 @@ function SettingsComponent() { } export const settings = definePluginSettings({ - dontShowForBots: { - description: "Don't show extra tags for bots (excluding webhooks)", - type: OptionType.BOOLEAN, - default: false - }, - dontShowBotTag: { - description: "Only show extra tags for bots / Hide [APP] text", - type: OptionType.BOOLEAN, - default: false, - restartNeeded: true - }, - tagSettings: { - type: OptionType.COMPONENT, - component: SettingsComponent, - description: "fill me" - }, specialUsers: { type: OptionType.STRING, - description: "List of special user IDs (comma separated)", - default: "878151241769820173", + description: "Special users (comma-separated user IDs)", + default: "" }, specialTag: { type: OptionType.STRING, - description: "Text to display for special users", - default: "Special", + description: "Tag for special users", + default: "SPECIAL" + }, + dontShowBotTag: { + type: OptionType.BOOLEAN, + description: "Don't show bot tag", + default: false + }, + dontShowForBots: { + type: OptionType.BOOLEAN, + description: "Don't show tags for bots", + default: false + }, + tagSettings: { + type: OptionType.COMPONENT, + description: "Tag Settings", + component: SettingsComponent } });