AutoComplete subcommand name/id
Hello! I'm trying to use autocomplete interactions for my subcommands. Both subcommands (start & end) have the same autocomplete option called 'event'.
I'd like to be able to identify which subcommand is being used to use a different logic for each one. Is this possible? Currently I am only able to access the command's information but not the subcommands.
2 Replies
Solution
You can use
interaction.options.getSubcommand()
🙂Thank you, I'm dumb. Thought options were different for autocomplete interactions haha