Setting autocomplete options based on other option's value
I'm trying to make it so one autocomplete option (
type
)'s choices are based on the value of another option (category
) within the same command.
When I first set the value of category
- which is a non-autocomplete string choice option - and I move to the autocomplete option type
it successfully populates its choices according to the value of category
. However, when I go back and change the value of category
to something else, then move to the type
option, the proper corresponding choices only populate correctly if I type at least one letter. If I do not, it populates it with the previously set of choices, corresponding to the first value set for category
.
I've attached a GIF that will hopefully help understand my issue. Thank you!
[email protected] node v18.16.0
5 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.@jp_teixeira
I added this at the end of the post
[email protected] node v18.16.0
theres multiple bullet points
* Show your code!
i believe thats just how discord handles it though
I'm not being able to add the code to the original post can I just send it as a new message here
Sadge... Alright thank you