Unsuccessful implementation of autocomplete with subcommands
Here is the abridged code
command file
index.js
I have console logs in the autocomplete function that are not firing so I don't understand what is going on. In my command handler I also have a log for the interaction which is also not firing.
11 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 OPNode 20.10.0, discord version in the tag
can you show your entire listener
Sure one sec
Its too big, give me a sec to link it somewhere
Pastebin
autocomplete subcommand - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
there you are ignoring autocomplete interactions
🤦♂️
:method: CommandInteraction#isAutocomplete()
Indicates whether this interaction is an AutocompleteInteraction
check for that as well
👍