diff --git a/src/events/interactions/interactionCreate.ts b/src/events/interactions/interactionCreate.ts index 1e1e5b5..41c9fe9 100644 --- a/src/events/interactions/interactionCreate.ts +++ b/src/events/interactions/interactionCreate.ts @@ -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; }