feat: user error strings

This commit is contained in:
TrèsAbhi committed 2024-03-09 11:48:35 -06:00
1 parent 265eff98bf
commit 889ae39e3b
14 files changed
+71 -374

No files matched your search

+4 -2
View File
@@ -48,7 +48,7 @@ async function render(
includeLatestHistories: true,
includePreviousHistories: true,
})
: getTankHistories(region, id, {
: getTankHistories(region, id, locale, {
tankId: tankId!,
start,
end,
@@ -140,7 +140,9 @@ export const evolutionCommand = new Promise<CommandRegistry>(
const period = resolvePeriodFromCommand(player.region, interaction);
const tankIdRaw = interaction.options.getString('tank')!;
const tankId =
commandGroup === 'tank' ? await resolveTankId(tankIdRaw) : null;
commandGroup === 'tank'
? await resolveTankId(tankIdRaw, interaction.locale)
: null;
const path = commandToURL(interaction, {
...player,
...getCustomPeriodParams(interaction),