mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
fix: use extra clan feilds
This commit is contained in:
1 parent
cb8ae47be6
commit
15b8bfdf8f
2 files changed
+4
-2
No files matched your search
@@ -37,7 +37,9 @@ export const verifyCommand: CommandRegistry = {
|
|||||||
const id = parseInt(idString);
|
const id = parseInt(idString);
|
||||||
const discordId = parseInt(interaction.user.id);
|
const discordId = parseInt(interaction.user.id);
|
||||||
const accountInfo = await getAccountInfo(region as Region, 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);
|
await linkBlitzAndDiscord(discordId, region as Region, id);
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export async function getClanAccountInfo<
|
|||||||
: IndividualClanAccountInfo[],
|
: IndividualClanAccountInfo[],
|
||||||
>(region: Region, ids: Ids, extra?: string[]) {
|
>(region: Region, ids: Ids, extra?: string[]) {
|
||||||
const object = await fetchBlitz<ClanAccountInfo>(
|
const object = await fetchBlitz<ClanAccountInfo>(
|
||||||
`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,
|
ids,
|
||||||
)}${normalizeExtra(extra)}`,
|
)}${normalizeExtra(extra)}`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user