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.
Solution:
You can use interaction.options.getSubcommand() 🙂
Jump to solution
2 Replies
Solution
Lioness100
Lioness100•16mo ago
You can use interaction.options.getSubcommand() 🙂
yibuh
yibuhOP•16mo ago
Thank you, I'm dumb. Thought options were different for autocomplete interactions haha
Want results from more Discord servers?
Add your server