mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
23 lines
604 B
TypeScript
23 lines
604 B
TypeScript
import {
|
|
CacheType,
|
|
ChatInputCommandInteraction,
|
|
EmbedBuilder,
|
|
} from 'discord.js';
|
|
import { NEGATIVE_COLOR } from '../constants/colors.js';
|
|
import { client } from '../index.js';
|
|
|
|
export default async function wargamingError(
|
|
interaction: ChatInputCommandInteraction<CacheType>,
|
|
) {
|
|
await interaction.editReply({
|
|
embeds: [
|
|
new EmbedBuilder()
|
|
.setColor(NEGATIVE_COLOR)
|
|
.setTitle(`${client.user?.username} ran into an issue`)
|
|
.setDescription('Wargaming returned an error. Please try again later.'),
|
|
],
|
|
});
|
|
|
|
console.log('Wargaming returned an error.');
|
|
}
|