update to discord-player-v6 #76

Merged
Anri merged 30 commits from feat/music-v6 into main 2023-03-11 20:36:25 +01:00
Showing only changes of commit 6b672625ca - Show all commits

View file

@ -29,6 +29,15 @@ export default (interaction: Interaction, client: Client) => {
return modal.interaction(interaction, 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: default:
break; break;
} }