What are the differences between normal slash commands and autocomplete commands?
Besides the behavioral differences, like autocomplete commands can't be deferred, and autocomplete options can't be made required, etc. when is autocomplete better than a normal slash command with options?
Someone explaining autocomplete someone said: "When a user uses a slash command, like 'help', and this command takes a string argument of which command to describe, it might be annoying for the user to know every single command that they can ask for help for. Autocomplete fixes this by suggesting values, in this case, the bot's commands that the user can get help on."
But how is this better than using a slash command with a string option that has a predetermined set of choices?
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
but in all the examples i've seen (like discordjs.guide), they always respond to the autocomplete with a static set of choices anyway. below is an image of the code from discordjs.guide, how is that different from making a slash command with two string options ("query" and "version") and giving each of those the choices that they list in the arrays?
ah ok
so is the most important factor in determining if you should use autocomplete vs a normal slash command if you're going to have more than 25 options?
alright thank you 👍