feat: username inferring from discord nickname

This commit is contained in:
TresAbhi committed 2023-06-03 18:05:09 +00:00
1 parent f4bc66658b
commit db881f44d4
17 files changed
+55 -41

No files matched your search

+2 -4
View File
@@ -32,7 +32,7 @@ import { PlayerClanData } from '../types/playerClanData.js';
export default {
inProduction: true,
inDevelopment: false,
inDevelopment: true,
inPublic: true,
command: new SlashCommandBuilder()
@@ -41,9 +41,7 @@ export default {
.addStringOption(addUsernameOption),
async execute(interaction) {
const username = interaction.options.getString('username')!;
const blitzAccount = await getBlitzAccount(interaction, username);
const { id, server } = blitzAccount;
const { id, server } = await getBlitzAccount(interaction);
const tankStatsOverTime = await getTankStatsOverTime(
interaction,
server,