Skip to content

Commit

Permalink
[DEBUG]
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Jan 18, 2024
1 parent b649573 commit ae121a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/rabbitmq/events/interactionResponseCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ae121a8

Please sign in to comment.