feat: searchplayers

This commit is contained in:
TresAbhi committed 2023-05-02 23:01:56 +00:00
1 parent a9ba84e5d1
commit 8569079af9
12 files changed
+110 -91

No files matched your search

+4 -1
View File
@@ -3,11 +3,13 @@ import {
ChatInputCommandInteraction,
EmbedBuilder,
} from 'discord.js';
import { handleError } from '../behaviors/error.js';
import { NEGATIVE_COLOR } from '../constants/colors.js';
import { client } from '../index.js';
export default async function wargamingError(
interaction: ChatInputCommandInteraction<CacheType>,
error: Error,
) {
await interaction.editReply({
embeds: [
@@ -18,5 +20,6 @@ export default async function wargamingError(
],
});
console.log('Wargaming returned an error.');
console.log(`Wargaming returned an error`);
handleError(error, client);
}