mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: better command error reporting
This commit is contained in:
1 parent
5ef1f87236
commit
92acbc8e95
16 files changed
+668
-31
No files matched your search
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user