feat: better wargaming error typing

This commit is contained in:
TresAbhi committed 2023-04-26 23:06:04 +00:00
1 parent c37b90caac
commit c494331470
8 files changed
+134 -119

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import {
CacheType,
ChatInputCommandInteraction,
EmbedBuilder,
} from 'discord.js';
import { NEGATIVE_COLOR } from '../constants/colors.js';
export default async function wargamingError(
interaction: ChatInputCommandInteraction<CacheType>,
) {
await interaction.reply({
embeds: [
new EmbedBuilder()
.setColor(NEGATIVE_COLOR)
.setTitle('Skilled Bot ran into an issue')
.setDescription('Wargaming returned an error. Please try again later.'),
],
});
console.log('Wargaming returned an error.');
}