public override autocompleteRun(interaction: AutocompleteInteraction) {
const subcommand = interaction.options.getSubcommand();
if (subcommand.name === 'the subcommand with autocomplete') {
if (interaction.options.getFocused() === 'the option with subcommand') {
// do stuff for the specific option
}
}
}
public override autocompleteRun(interaction: AutocompleteInteraction) {
const subcommand = interaction.options.getSubcommand();
if (subcommand.name === 'the subcommand with autocomplete') {
if (interaction.options.getFocused() === 'the option with subcommand') {
// do stuff for the specific option
}
}
}