APIService integrated with InteractionHandler

This commit is contained in:
Mestima 2023-03-28 23:51:11 +03:00
parent db515aca96
commit beb8dae772

View File

@ -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);
}
}