mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: verify passing server into command
This commit is contained in:
1 parent
92acbc8e95
commit
ace4a24ba9
1 file changed
+2
-2
@@ -27,11 +27,11 @@ export default {
|
||||
const server = interaction.options.getString('server') as BlitzServer;
|
||||
const command = `verify ${server} ${name}`;
|
||||
|
||||
getBlitzAccount(interaction, server, name, server, async (account) => {
|
||||
getBlitzAccount(interaction, command, name, server, async (account) => {
|
||||
getWargamingResponse<PlayerClanData>(
|
||||
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${args['wargaming-application-id']}&account_id=${account.account_id}&extra=clan`,
|
||||
interaction,
|
||||
server,
|
||||
command,
|
||||
async (clanData) => {
|
||||
const clan = clanData[account.account_id].clan;
|
||||
const clanTag = clan === null ? '' : ` [${clan!.tag}]`;
|
||||
|
||||
Reference in new issue
Block a user