feat: eligible command

This commit is contained in:
TresAbhi committed 2023-06-04 00:01:10 +00:00
1 parent 1d0b428921
commit 804fa58d27
13 files changed
+219 -23

No files matched your search

+1 -2
View File
@@ -51,8 +51,7 @@ export default {
async execute(interaction) {
const period = interaction.options.getString('period') as StatPeriod;
const blitzAccount = await getBlitzAccount(interaction);
const { id, server } = blitzAccount;
const { id, server } = await getBlitzAccount(interaction);
const accountInfo = await getWargamingResponse<AccountInfo>(
`https://api.wotblitz.${server}/wotb/account/info/?application_id=${args['wargaming-application-id']}&account_id=${id}`,
);