From 45549f41d757ee49cd22bb4cdfdf6b74b3834258 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Sun, 23 Oct 2022 19:52:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bot=20now=20respond,=20interacti?= =?UTF-8?q?ons,=20guild=20not=20in=20db?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/events/interactionCreate/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/interactionCreate/index.ts b/src/events/interactionCreate/index.ts index dde7ab2..c7e9c63 100644 --- a/src/events/interactionCreate/index.ts +++ b/src/events/interactionCreate/index.ts @@ -22,8 +22,6 @@ export const execute = async (interaction: BaseInteraction) => { `New interaction: ${id} in guild: ${guild?.name} (${guild?.id})` ); - await audits.execute(interaction); - switch (interaction.type) { case InteractionType.ApplicationCommand: await HandlersHandleCommandInteraction(interaction); @@ -32,4 +30,6 @@ export const execute = async (interaction: BaseInteraction) => { default: logger?.error(`Unknown interaction type: ${interaction.type}`); } + + await audits.execute(interaction); };