^ As the title says. I can't seem to figure out how subcommands can have autocompleteRun implemented. I'm not too worried about duplicates, since there is only one subcommand that uses autocomplete.
Solution
Doesn't matter. You still just do
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 } }}