Autocomplete - return an error instead of options
Hey guys, I am using the Autocomplete slash command in my bot, which for context uses another API which requires that the user exists. So if the user doesn't exist I don't want to respond with options but show an error/warning message instead.
From the documentation there isn't an example or way of doing this. Am I missing something here?
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Idk, either respond with empty array or don't respond
Pretty sure that would show "no options match your search"
both ways don't inform the user why there are no options...mhmmm
I'll just show them an option and then early exit if they try to use that option to proceed
Thanks for trying to help 🙂