Closed BlueTree242 closed 3 months ago
I think i found a solution that could fix this problem:
SuggestionProvider#noSuggestions
should always return the same value, from a final variable.SuggestionProvider#noSuggestions
equals the provider of the argument, this predicate doesn't get called if DiscordChoices is the type of provider, this predicate would help you detect your own custom providers and act accordingly.
Currently, all arguments are registered with auto completions, or with choices. This is not always a good idea because sometimes there's a guarantee that there will be no suggestions returned (like in case of string parser)
I think the suggestions system may need some changes to make this work, I think it's very important because on low end phones discord trying to get auto completions cause delay/lag.