mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: removed multi-tank from evolution
This commit is contained in:
1 parent
ffebe6c696
commit
d2319688a5
2 files changed
+9
-3
No files matched your search
@@ -24,6 +24,7 @@ export const evolutionCommand = new Promise<CommandRegistryRaw>(
|
||||
new SlashCommandBuilder()
|
||||
.setName('evolution')
|
||||
.setDescription('Evolution of statistics'),
|
||||
false,
|
||||
);
|
||||
|
||||
resolve({
|
||||
|
||||
@@ -8,10 +8,11 @@ import addUsernameChoices from './addUsernameChoices';
|
||||
|
||||
export default async function addStatTypeSubCommandGroups(
|
||||
option: SlashCommandBuilder,
|
||||
addMultiTank = true,
|
||||
) {
|
||||
const awaitedTankopediaInfo = await tankopediaInfo;
|
||||
|
||||
return option
|
||||
option
|
||||
.addSubcommandGroup((option) =>
|
||||
addPeriodSubCommands(option, (option) =>
|
||||
option.addStringOption(addUsernameChoices),
|
||||
@@ -27,8 +28,10 @@ export default async function addStatTypeSubCommandGroups(
|
||||
)
|
||||
.setName('tank' satisfies StatType)
|
||||
.setDescription('Tank statistics'),
|
||||
)
|
||||
.addSubcommandGroup((option) =>
|
||||
);
|
||||
|
||||
if (addMultiTank)
|
||||
option.addSubcommandGroup((option) =>
|
||||
addPeriodSubCommands(option, (option) =>
|
||||
option
|
||||
.addStringOption(addUsernameChoices)
|
||||
@@ -87,4 +90,6 @@ export default async function addStatTypeSubCommandGroups(
|
||||
.setName('multi-tank' satisfies StatType)
|
||||
.setDescription('Multiple tanks'),
|
||||
);
|
||||
|
||||
return option;
|
||||
}
|
||||
Reference in new issue
Block a user