From 3f6e926789fea44e27dbba44dcd56a25008b2726 Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Sun, 16 Oct 2022 14:53:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20Added=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/events/interactionCreate/handlers/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/events/interactionCreate/handlers/index.ts b/src/plugins/events/interactionCreate/handlers/index.ts index 3e99cb0..75e3189 100644 --- a/src/plugins/events/interactionCreate/handlers/index.ts +++ b/src/plugins/events/interactionCreate/handlers/index.ts @@ -10,11 +10,13 @@ import getEmbedConfig from "../../../../helpers/getEmbedData"; import button from "./button"; import command from "./command"; +// Send interactions to all available handlers export const execute = async (interaction: BaseInteraction) => { await button(interaction); await command(interaction); }; +// Handle interactions from commands export const handleCommandInteraction = async ( interaction: CommandInteraction ) => {