update to discord-player-v6 #76
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