From ae121a878dd6effb6348ba058ee650385241a6fe Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Thu, 18 Jan 2024 18:35:50 +0330 Subject: [PATCH] [DEBUG] --- src/rabbitmq/events/interactionResponseCreate.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/rabbitmq/events/interactionResponseCreate.ts b/src/rabbitmq/events/interactionResponseCreate.ts index 65b7611f..433dfdbf 100644 --- a/src/rabbitmq/events/interactionResponseCreate.ts +++ b/src/rabbitmq/events/interactionResponseCreate.ts @@ -8,8 +8,12 @@ const logger = parentLogger.child({ module: `${Event.DISCORD_BOT.INTERACTION_RES export async function handleInteractionResponseCreate(msg: any) { try { logger.info({ msg, event: Event.DISCORD_BOT.INTERACTION_RESPONSE.CREATE, }, 'is running'); - const interaction: ChatInputCommandInteraction_broker = JSON.parse(msg?.content.interaction); - const data: InteractionResponse = JSON.parse(msg?.content.data); + // const interaction: ChatInputCommandInteraction_broker = JSON.parse(msg?.content.interaction); + // const data: InteractionResponse = JSON.parse(msg?.content.data); + + + const interaction = msg?.content.interaction; + const data = msg?.content.data; console.log(interaction)