multiple autocomplete
hi, i have a subcommand like this and an autocomplete function that gets the interaction, how can i "see" what option it should autocomplete? i tried because that was somewhere in the internet, but that just gives null
4 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPyou can pass
true
to <AutocompleteInteraction>.options.getFocused()
so that it returns the whole option object
then you can access <AutocompleteFocusedOption>.name
works perfectly thanks a lot <3, i couldnt find it online with my searches