From 3333063a4752e1c16fee73d86a0ead5d8cd5cc2f Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Fri, 14 Oct 2022 13:55:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Fixed=20som?= =?UTF-8?q?e=20code=20smells?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/events/interactionCreate/handlers/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/events/interactionCreate/handlers/index.ts b/src/plugins/events/interactionCreate/handlers/index.ts index d596913..3e99cb0 100644 --- a/src/plugins/events/interactionCreate/handlers/index.ts +++ b/src/plugins/events/interactionCreate/handlers/index.ts @@ -1,5 +1,6 @@ import { BaseInteraction, + ButtonInteraction, ChatInputCommandInteraction, CommandInteraction, EmbedBuilder, @@ -10,7 +11,7 @@ import button from "./button"; import command from "./command"; export const execute = async (interaction: BaseInteraction) => { - await button(interaction); + await button(interaction); await command(interaction); }; @@ -21,7 +22,7 @@ export const handleCommandInteraction = async ( interaction.guild ); - await command(interaction).catch(async (err) => { + await command(interaction).catch((err) => { return interaction.editReply({ embeds: [ new EmbedBuilder()