update to discord-player-v6 #76
2 changed files with 7 additions and 1 deletions
|
@ -35,9 +35,13 @@ export default (interaction: Interaction, client: Client) => {
|
|||
return console.error(loc.get("e_interacreate_no_command"));
|
||||
}
|
||||
|
||||
if (command.autocomplete) {
|
||||
return command.autocomplete(interaction);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -79,6 +79,8 @@ declare module "discord.js" {
|
|||
data: SlashCommandBuilder;
|
||||
/** How the command interact */
|
||||
interaction: (interaction: CommandInteraction, client: Client) => unknown;
|
||||
/** Autocomplete logic */
|
||||
autocomplete: undefined | ((interaction: AutocompleteInteraction) => unknown);
|
||||
}
|
||||
>;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue