feat: link command basic functionaility

This commit is contained in:
TrèsAbhi committed 2023-10-10 20:33:24 -05:00
1 parent 97d427a6a8
commit 19298b9ad6
19 files changed
+225 -166

No files matched your search

@@ -11,7 +11,6 @@ import embedNegative from '../../../core/discord/embedNegative';
import embedWarning from '../../../core/discord/embedWarning';
import normalizeInteractionReturnable from '../../../core/discord/normalizeInteractionReturnable';
import { psa } from '../../../core/discord/psa';
import { handleError } from '../../error';
export default async function handleChatInputCommand(
interaction: ChatInputCommandInteraction<CacheType>,
@@ -55,6 +54,8 @@ export default async function handleChatInputCommand(
.setStyle(ButtonStyle.Link),
);
console.error(interaction.commandName, error);
await interaction.editReply({
embeds: [
embedNegative(
@@ -64,7 +65,5 @@ export default async function handleChatInputCommand(
],
components: [actionRow],
});
handleError(error as Error, interaction.commandName);
}
}
+1 -1
View File
@@ -30,7 +30,7 @@ import { searchPlayersCommand } from '../../commands/searchPlayers';
import { searchTanksCommand } from '../../commands/searchTanks';
import { statsCommand } from '../../commands/stats';
import { todayCommand } from '../../commands/today';
import { verifyCommand } from '../../commands/verify';
import { verifyCommand } from '../../commands/link';
import getClientId from '../../core/node/getClientId';
import isDev from '../../core/node/isDev';
import { secrets } from '../../core/node/secrets';