Handling argument autocomplete per command

Would it be possible to handle autocompletes through the Command class itself instead and it will be handled accordingly by the interactionCreate event?
Solution:
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
Jump to solution
5 Replies
Solution
Sawako
Sawako3y 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
Alex
Alex3y 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
Dolliwyx
DolliwyxOP3y ago
Got it thanks!! Follow-up question: what would be the best one to use for subcommands for autocomplete?
Sawako
Sawako3y ago
in the same way Just check that the interaction comes from that subcommand name
Dolliwyx
DolliwyxOP3y ago
I see, got it thank you!!

Did you find this page helpful?