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
KaydaFox
KaydaFox15mo ago
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
xAfflict
xAfflict15mo ago
Ah, that would work. I wasn't aware that autocomplete existed. I only thought I could do this through choices. Thanks.
KaydaFox
KaydaFox15mo ago
yww!
KaydaFox
KaydaFox15mo ago
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
Want results from more Discord servers?
Add your server