mirror of
https://github.com/Mestima/luna.git
synced 2025-05-05 21:50:15 +00:00
APIService integrated with InteractionHandler
This commit is contained in:
parent
db515aca96
commit
beb8dae772
@ -28,11 +28,11 @@ const InteractionHandler = class {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async handle(interaction) {
|
async handle(interaction, api) {
|
||||||
if (!interaction.isCommand()) return;
|
if (!interaction.isCommand()) return;
|
||||||
|
|
||||||
if (interaction.commandName in this.commands) {
|
if (interaction.commandName in this.commands) {
|
||||||
await this.commands[interaction.commandName].execute(interaction);
|
await this.commands[interaction.commandName].execute(interaction, api);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user