diff --git a/src/commands/link.tsx b/src/commands/link.tsx index 88950d4ff..9db82aaae 100644 --- a/src/commands/link.tsx +++ b/src/commands/link.tsx @@ -37,7 +37,9 @@ export const verifyCommand: CommandRegistry = { const id = parseInt(idString); const discordId = parseInt(interaction.user.id); const accountInfo = await getAccountInfo(region as Region, id); - const clanAccountInfo = await getClanAccountInfo(region as Region, id); + const clanAccountInfo = await getClanAccountInfo(region as Region, id, [ + 'clan', + ]); await linkBlitzAndDiscord(discordId, region as Region, id); diff --git a/src/core/blitz/getClanAccountInfo.ts b/src/core/blitz/getClanAccountInfo.ts index db534c432..6c36fc15f 100644 --- a/src/core/blitz/getClanAccountInfo.ts +++ b/src/core/blitz/getClanAccountInfo.ts @@ -32,7 +32,7 @@ export async function getClanAccountInfo< : IndividualClanAccountInfo[], >(region: Region, ids: Ids, extra?: string[]) { const object = await fetchBlitz( - `https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&clan_id=${normalizeIds( + `https://api.wotblitz.${region}/wotb/clans/accountinfo/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${normalizeIds( ids, )}${normalizeExtra(extra)}`, );