-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for custom autocomplete suggestions #1353
Comments
Here is how I would do it:
Was also thinking of other related features to args
|
What if we converted arguments to be a table like so (we would support the old style for backwards compatability) Arguments = {
{
type = "user",
default = "me",
autocompleteValues = service.Players:GetPlayers()
}} |
That would add a lot of bloat + it would cause high memorylag and just be super clumsy to use The new style is already used and wouldn't break anythinh |
Interesting |
After I realized the potential issue of memory lag, you could do something similar to autocomplete but it does not hog the client's memory. If the client's command input is focused on an argument that requires a player target, they could right click on any player then the command input autofills the target's name. |
What part of Adonis is this related to?
Command
What are you suggesting?
The discussion in #1350 reminded me of this. A while back, I tried adding custom autocomplete suggestions to a command I was trying to create, only to find out that the autocomplete username suggestions are hard-baked in. It would be nice if the autocomplete suggestions could be customized somehow.
The text was updated successfully, but these errors were encountered: