mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-28 04:59:50 +01:00
fix: /stats filters
This commit is contained in:
1 parent
5e7620ccf4
commit
60b2e62713
2 files changed
+14
-18
No files matched your search
@@ -50,17 +50,15 @@ export function addFilterOptions<
|
|||||||
.addStringOption((option) => addTierChoices(option).setRequired(false))
|
.addStringOption((option) => addTierChoices(option).setRequired(false))
|
||||||
.addStringOption((option) =>
|
.addStringOption((option) =>
|
||||||
option
|
option
|
||||||
.setName(translate('bot.common.options.filters.tank_class'))
|
.setName(translate('bot.common.options.filters.class'))
|
||||||
.setNameLocalizations(
|
.setNameLocalizations(
|
||||||
localizationObject('bot.common.options.filters.tank_class'),
|
localizationObject('bot.common.options.filters.class'),
|
||||||
)
|
)
|
||||||
.setDescription(
|
.setDescription(
|
||||||
translate('bot.common.options.filters.tank_class.description'),
|
translate('bot.common.options.filters.class.description'),
|
||||||
)
|
)
|
||||||
.setDescriptionLocalizations(
|
.setDescriptionLocalizations(
|
||||||
localizationObject(
|
localizationObject('bot.common.options.filters.class.description'),
|
||||||
'bot.common.options.filters.tank_class.description',
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.addChoices(
|
.addChoices(
|
||||||
...TANK_CLASSES.map(
|
...TANK_CLASSES.map(
|
||||||
@@ -78,17 +76,15 @@ export function addFilterOptions<
|
|||||||
)
|
)
|
||||||
.addStringOption((option) =>
|
.addStringOption((option) =>
|
||||||
option
|
option
|
||||||
.setName(translate('bot.common.options.filters.tree_type'))
|
.setName(translate('bot.common.options.filters.type'))
|
||||||
.setNameLocalizations(
|
.setNameLocalizations(
|
||||||
localizationObject('bot.common.options.filters.tree_type'),
|
localizationObject('bot.common.options.filters.type'),
|
||||||
)
|
)
|
||||||
.setDescription(
|
.setDescription(
|
||||||
translate('bot.common.options.filters.tree_type.description'),
|
translate('bot.common.options.filters.type.description'),
|
||||||
)
|
)
|
||||||
.setDescriptionLocalizations(
|
.setDescriptionLocalizations(
|
||||||
localizationObject(
|
localizationObject('bot.common.options.filters.type.description'),
|
||||||
'bot.common.options.filters.tree_type.description',
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.addChoices(
|
.addChoices(
|
||||||
...TANK_TYPES.map(
|
...TANK_TYPES.map(
|
||||||
|
|||||||
@@ -232,13 +232,13 @@
|
|||||||
"$": "nation",
|
"$": "nation",
|
||||||
"description": "Nation"
|
"description": "Nation"
|
||||||
},
|
},
|
||||||
"tank_class": {
|
"class": {
|
||||||
"$": "tank-class",
|
"$": "class",
|
||||||
"description": "Tank class"
|
"description": "Class"
|
||||||
},
|
},
|
||||||
"tree_type": {
|
"type": {
|
||||||
"$": "tree-type",
|
"$": "type",
|
||||||
"description": "Tree type"
|
"description": "Type"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user