feat: eligible command

This commit is contained in:
TresAbhi committed 2023-06-04 00:01:10 +00:00
1 parent 1d0b428921
commit 804fa58d27
13 files changed
+219 -23

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
import { CacheType, ChatInputCommandInteraction } from 'discord.js';
import { go } from 'fuzzysort';
import errorEmbed from '../interaction/errorEmbed.js';
import negativeEmbed from '../interaction/negativeEmbed.js';
import { TANKS, tankopedia } from './tankopedia.js';
export default async function resolveTankId(
@@ -15,7 +15,7 @@ export default async function resolveTankId(
if (searchResult.length === 0) {
await interaction.editReply({
embeds: [
errorEmbed(
negativeEmbed(
'Tank not found',
`Could not find tank by the name "${tank}".`,
),
@@ -32,7 +32,7 @@ export default async function resolveTankId(
} else {
await interaction.editReply({
embeds: [
errorEmbed(
negativeEmbed(
'Tank not found',
`Could not find tank by the ID "${number}".`,
),