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
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 6ad8fd1039 - Show all commits

View file

@ -35,7 +35,11 @@ export default (interaction: Interaction, client: Client) => {
return console.error(loc.get("e_interacreate_no_command")); return console.error(loc.get("e_interacreate_no_command"));
} }
return command.autocomplete(interaction); if (command.autocomplete) {
return command.autocomplete(interaction);
}
return;
} }
default: default:

View file

@ -79,6 +79,8 @@ declare module "discord.js" {
data: SlashCommandBuilder; data: SlashCommandBuilder;
/** How the command interact */ /** How the command interact */
interaction: (interaction: CommandInteraction, client: Client) => unknown; interaction: (interaction: CommandInteraction, client: Client) => unknown;
/** Autocomplete logic */
autocomplete: undefined | ((interaction: AutocompleteInteraction) => unknown);
} }
>; >;
}; };