feat: better command error reporting

This commit is contained in:
TresAbhi committed 2023-05-06 18:03:37 +00:00
1 parent 5ef1f87236
commit 92acbc8e95
16 files changed
+668 -31

No files matched your search

+3 -1
View File
@@ -25,11 +25,13 @@ export default {
execute(interaction) {
const name = interaction.options.getString('name')!;
const server = interaction.options.getString('server') as BlitzServer;
const command = `verify ${server} ${name}`;
getBlitzAccount(interaction, name, server, async (account) => {
getBlitzAccount(interaction, server, 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,
async (clanData) => {
const clan = clanData[account.account_id].clan;
const clanTag = clan === null ? '' : ` [${clan!.tag}]`;