mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +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()
|
new SlashCommandBuilder()
|
||||||
.setName('evolution')
|
.setName('evolution')
|
||||||
.setDescription('Evolution of statistics'),
|
.setDescription('Evolution of statistics'),
|
||||||
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
resolve({
|
resolve({
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ import addUsernameChoices from './addUsernameChoices';
|
|||||||
|
|
||||||
export default async function addStatTypeSubCommandGroups(
|
export default async function addStatTypeSubCommandGroups(
|
||||||
option: SlashCommandBuilder,
|
option: SlashCommandBuilder,
|
||||||
|
addMultiTank = true,
|
||||||
) {
|
) {
|
||||||
const awaitedTankopediaInfo = await tankopediaInfo;
|
const awaitedTankopediaInfo = await tankopediaInfo;
|
||||||
|
|
||||||
return option
|
option
|
||||||
.addSubcommandGroup((option) =>
|
.addSubcommandGroup((option) =>
|
||||||
addPeriodSubCommands(option, (option) =>
|
addPeriodSubCommands(option, (option) =>
|
||||||
option.addStringOption(addUsernameChoices),
|
option.addStringOption(addUsernameChoices),
|
||||||
@@ -27,8 +28,10 @@ export default async function addStatTypeSubCommandGroups(
|
|||||||
)
|
)
|
||||||
.setName('tank' satisfies StatType)
|
.setName('tank' satisfies StatType)
|
||||||
.setDescription('Tank statistics'),
|
.setDescription('Tank statistics'),
|
||||||
)
|
);
|
||||||
.addSubcommandGroup((option) =>
|
|
||||||
|
if (addMultiTank)
|
||||||
|
option.addSubcommandGroup((option) =>
|
||||||
addPeriodSubCommands(option, (option) =>
|
addPeriodSubCommands(option, (option) =>
|
||||||
option
|
option
|
||||||
.addStringOption(addUsernameChoices)
|
.addStringOption(addUsernameChoices)
|
||||||
@@ -87,4 +90,6 @@ export default async function addStatTypeSubCommandGroups(
|
|||||||
.setName('multi-tank' satisfies StatType)
|
.setName('multi-tank' satisfies StatType)
|
||||||
.setDescription('Multiple tanks'),
|
.setDescription('Multiple tanks'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return option;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user