WIP: add interaction handling
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-03-11 08:01:09 +01:00
parent cb5adf3679
commit 6b672625ca
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -29,6 +29,15 @@ export default (interaction: Interaction, client: Client) => {
return modal.interaction(interaction, client);
}
case InteractionType.ApplicationCommandAutocomplete: {
const command = client.commands.list.get(interaction.commandName);
if (!command) {
return console.error(loc.get("e_interacreate_no_command"));
}
return command.autocomplete(interaction);
}
default:
break;
}