diff --git a/docs/changelogs/1.17.2.md b/docs/changelogs/1.17.2.md new file mode 100644 index 000000000..70c608ef6 --- /dev/null +++ b/docs/changelogs/1.17.2.md @@ -0,0 +1,13 @@ +# Blitzkrieg 1.17.2 + +Introducing the new `/research` command! + +## Features + +- Added the `/research` command + - Type in the name of a tech tree tank you desire to research and this command will list all the expenses in researching all tanks in that line + - The starting tank is inferred automatically by the tanks you own + - This may be a bit inaccurate because of the lack of accurate information Wargaming provides about owned tanks + - You are also manually provide a starting tank and a user to see the progress on a line for +- Replaced Vercel Analytics (which collapsed under the insane amount of traffic on the website) with Google Analytics +- Spaced armor can now be toggled in the Tankopedia armor sandbox diff --git a/src/commands/research.tsx b/src/commands/research.tsx index 33425945a..dfa96519f 100644 --- a/src/commands/research.tsx +++ b/src/commands/research.tsx @@ -17,6 +17,7 @@ import { TIER_ROMAN_NUMERALS, } from '../core/blitzkrieg/tankDefinitions/constants'; import { tankIconPng } from '../core/blitzkrieg/tankIconPng'; +import addUsernameChoices from '../core/discord/addUsernameChoices'; import autocompleteTanks from '../core/discord/autocompleteTanks'; import { createLocalizedCommand } from '../core/discord/createLocalizedCommand'; import { localizationObject } from '../core/discord/localizationObject'; @@ -31,7 +32,6 @@ export const researchCommand = new Promise((resolve) => { resolve({ inProduction: true, inPublic: true, - inPreview: true, command: createLocalizedCommand('research') .addStringOption((option) => @@ -67,7 +67,8 @@ export const researchCommand = new Promise((resolve) => { ) .setAutocomplete(true) .setRequired(false), - ), + ) + .addStringOption(addUsernameChoices), async handler(interaction) { const { t, translate } = translator(interaction.locale);