feat(economy): simplify category label and add placeholder for input fields

This commit is contained in:
2025-10-05 06:16:19 -05:00
parent ed80eb2584
commit 21fd4d8176
2 changed files with 4 additions and 2 deletions

View File

@@ -230,12 +230,13 @@ async function showBaseModal(i: ButtonInteraction, state: AchievementState, edit
}, },
{ {
type: ComponentType.Label, type: ComponentType.Label,
label: 'Categoría (mining/fishing/combat/economy/crafting)', label: 'Categoría',
component: { component: {
type: ComponentType.TextInput, type: ComponentType.TextInput,
customId: 'category', customId: 'category',
style: TextInputStyle.Short, style: TextInputStyle.Short,
required: false, required: false,
placeholder: '(mining/fishing/combat/economy/crafting)',
value: state.category || 'economy' value: state.category || 'economy'
} }
}, },

View File

@@ -237,12 +237,13 @@ async function showBaseModal(i: ButtonInteraction, state: QuestState, editorMsg:
}, },
{ {
type: ComponentType.Label, type: ComponentType.Label,
label: 'Categoría (mining/fishing/combat/economy/crafting)', label: 'Categoría',
component: { component: {
type: ComponentType.TextInput, type: ComponentType.TextInput,
customId: 'category', customId: 'category',
style: TextInputStyle.Short, style: TextInputStyle.Short,
required: false, required: false,
placeholder: "(mining/fishing/combat/economy/crafting)",
value: state.category || 'mining' value: state.category || 'mining'
} }
}, },