mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02: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) =>
|
||||
option
|
||||
.setName(translate('bot.common.options.filters.tank_class'))
|
||||
.setName(translate('bot.common.options.filters.class'))
|
||||
.setNameLocalizations(
|
||||
localizationObject('bot.common.options.filters.tank_class'),
|
||||
localizationObject('bot.common.options.filters.class'),
|
||||
)
|
||||
.setDescription(
|
||||
translate('bot.common.options.filters.tank_class.description'),
|
||||
translate('bot.common.options.filters.class.description'),
|
||||
)
|
||||
.setDescriptionLocalizations(
|
||||
localizationObject(
|
||||
'bot.common.options.filters.tank_class.description',
|
||||
),
|
||||
localizationObject('bot.common.options.filters.class.description'),
|
||||
)
|
||||
.addChoices(
|
||||
...TANK_CLASSES.map(
|
||||
@@ -78,17 +76,15 @@ export function addFilterOptions<
|
||||
)
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName(translate('bot.common.options.filters.tree_type'))
|
||||
.setName(translate('bot.common.options.filters.type'))
|
||||
.setNameLocalizations(
|
||||
localizationObject('bot.common.options.filters.tree_type'),
|
||||
localizationObject('bot.common.options.filters.type'),
|
||||
)
|
||||
.setDescription(
|
||||
translate('bot.common.options.filters.tree_type.description'),
|
||||
translate('bot.common.options.filters.type.description'),
|
||||
)
|
||||
.setDescriptionLocalizations(
|
||||
localizationObject(
|
||||
'bot.common.options.filters.tree_type.description',
|
||||
),
|
||||
localizationObject('bot.common.options.filters.type.description'),
|
||||
)
|
||||
.addChoices(
|
||||
...TANK_TYPES.map(
|
||||
|
||||
@@ -232,13 +232,13 @@
|
||||
"$": "nation",
|
||||
"description": "Nation"
|
||||
},
|
||||
"tank_class": {
|
||||
"$": "tank-class",
|
||||
"description": "Tank class"
|
||||
"class": {
|
||||
"$": "class",
|
||||
"description": "Class"
|
||||
},
|
||||
"tree_type": {
|
||||
"$": "tree-type",
|
||||
"description": "Tree type"
|
||||
"type": {
|
||||
"$": "type",
|
||||
"description": "Type"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user