InteractionCreate for autocomplete won't fire on some commands
Below is my code. There are no errors at all - on some commands the autocomplete works, on others nothing even prints for Events.InteractionCreate. My options have .setAutocomplete(true).
Here is the map option. The code for it is the exact same for both of my commands:
Here is the top of the of the InteractionCreate event handler, the rest doesn't matter as it doesn't even reach the console.log statement
In pic 1 and 2 you can see that it cannot load any options, and in fact nothing even prints. No errors either.
In pic 3 and 4 I used a different command which has the exact same option yet the event fires for it and it works
What could be the issue?
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![email protected]
node v22.12.0
same here
oh phew, I thought I was insane and spent hours trying to look into it, thinking it was an error on my part
wonder if it could be a discord API thing
yeah thats what im thinking
just really weird that i touched Nothing and it just started randomly happening LOL
dang
I was refactoring my code which is a terrible coincidence because it made me think I broke it
oh well
https://discord.com/channels/222078108977594368/824411059443204127/1330642933116047381 😭 Top 5 worst bugs ever
To see if that's the issue try to reproduce the bug on your web browser, then look at the network tab for an error like this:
yup, I have it
ty for letting me know, hopefully they fix it soon
np