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 toolkit11mo 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
d411mo 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
TheMonDon11mo ago
If my bot deploys commands everytime it starts up is it technically any different compared to autocomplete?
SpecialSauce
SpecialSauce11mo 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
TheMonDon11mo ago
Its for a bot builder program so it makes more sense, but usually I would understand Alright thanks