From beb8dae772b2b1536e397e7e49f103d3748e7fac Mon Sep 17 00:00:00 2001 From: Mestima Date: Tue, 28 Mar 2023 23:51:11 +0300 Subject: [PATCH] APIService integrated with InteractionHandler --- src/handlers/InteractionHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/InteractionHandler.js b/src/handlers/InteractionHandler.js index 181816a..e32f475 100644 --- a/src/handlers/InteractionHandler.js +++ b/src/handlers/InteractionHandler.js @@ -28,11 +28,11 @@ const InteractionHandler = class { } } - async handle(interaction) { + async handle(interaction, api) { if (!interaction.isCommand()) return; if (interaction.commandName in this.commands) { - await this.commands[interaction.commandName].execute(interaction); + await this.commands[interaction.commandName].execute(interaction, api); } }