Add Choices To An Already Registered Command
Is there any way to add choices to an already registered command?
For example, say I have a command that allows a user to add a fruit to a list. Then I have another command that allows the user to take the fruit off the list.
I want to be able to update the choices in the command every time the user adds or removes a fruit. Is this possible with Sapphire?
4 Replies
you could use autocomplete along with a database of what fruits are there?
since changing choices requires registering that command every time. where as autocomplete doesnt
Ah, that would work. I wasn't aware that autocomplete existed. I only thought I could do this through choices.
Thanks.
yww!
https://www.sapphirejs.dev/docs/Guide/interaction-handlers/autocomplete you can find it in the docs here if needed
Sapphire Framework
Autocomplete | Sapphire
Certain Chat Input Command options can be autocompleted based on what the user has written. There are two ways you can