What is the difference between autocomplete and string input options?

I'm kinda confused, how does autocomplete differ from normal string input options? If I understand correctly it is able to give different secondary options compared to the input on the first option? I might be wrong though.
5 Replies
d.js toolkit
d.js toolkit2y ago
- 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. - Issue solved? Press the button!
d4
d42y ago
Regular options are static, meaning they are only changed when you deploy the command. Autocomplete is dynamic, so you can generate different choices every time
TheMonDon
TheMonDonOP2y ago
If my bot deploys commands everytime it starts up is it technically any different compared to autocomplete?
SpecialSauce
SpecialSauce2y ago
Very. That’s not what autocomplete is at all. And you shouldn’t deploy on startup. An autocomplete string option sends an interaction event every time the user changes the string to that option. The interaction event received will give you the ability to parse the other options selected when responding.
TheMonDon
TheMonDonOP2y ago
Its for a bot builder program so it makes more sense, but usually I would understand Alright thanks
Want results from more Discord servers?
Add your server