WIP: add interaction handling
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
cb5adf3679
commit
6b672625ca
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue