mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +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 server = interaction.options.getString('server') as BlitzServer;
|
||||||
const command = `verify ${server} ${name}`;
|
const command = `verify ${server} ${name}`;
|
||||||
|
|
||||||
getBlitzAccount(interaction, server, name, server, async (account) => {
|
getBlitzAccount(interaction, command, name, server, async (account) => {
|
||||||
getWargamingResponse<PlayerClanData>(
|
getWargamingResponse<PlayerClanData>(
|
||||||
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${args['wargaming-application-id']}&account_id=${account.account_id}&extra=clan`,
|
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${args['wargaming-application-id']}&account_id=${account.account_id}&extra=clan`,
|
||||||
interaction,
|
interaction,
|
||||||
server,
|
command,
|
||||||
async (clanData) => {
|
async (clanData) => {
|
||||||
const clan = clanData[account.account_id].clan;
|
const clan = clanData[account.account_id].clan;
|
||||||
const clanTag = clan === null ? '' : ` [${clan!.tag}]`;
|
const clanTag = clan === null ? '' : ` [${clan!.tag}]`;
|
||||||
|
|||||||
Reference in new issue
Block a user