Add class for interactions

This commit is contained in:
Marius Begby committed 2023-08-31 17:36:16 +02:00
1 parent d0f1e940a5
commit b96a73df6f
37 files changed
+1038 -1012

No files matched your search

+9 -3
View File
@@ -1,5 +1,11 @@
import config from 'config';
import { ChatInputCommandInteraction, EmbedBuilder, Interaction, InteractionReplyOptions, MessageComponentInteraction } from 'discord.js';
import {
ChatInputCommandInteraction,
EmbedBuilder,
Interaction,
InteractionReplyOptions,
MessageComponentInteraction
} from 'discord.js';
import { Logger } from 'pino';
import loggerModule from '../services/logger';
import { BotOptions, EmbedOptions } from '../types/configTypes';
@@ -12,8 +18,8 @@ const botOptions: BotOptions = config.get('botOptions');
export const handleError = async (
interaction: Interaction,
error: CustomError,
interactionIdentifier: string,
executionId: string
executionId: string,
interactionIdentifier: string
) => {
const logger: Logger = loggerModule.child({
source: 'interactionErrorHandler.ts',