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

+2
View File
@@ -12,6 +12,7 @@ import getWargamingResponse from './getWargamingResponse.js';
export default async function getClan(
interaction: ChatInputCommandInteraction<CacheType>,
command: string,
name: string,
server: BlitzServer,
callback: (account: Clan) => void,
@@ -21,6 +22,7 @@ export default async function getClan(
getWargamingResponse<ClanList>(
`https://api.wotblitz.${server}/wotb/clans/list/?application_id=${args['wargaming-application-id']}&search=${name}`,
interaction,
command,
async (clans) => {
if (
clans.length > 0 &&