Varying parsing options?

With slash commands, is it possible to have a varying input option depending on a condition? Say there are two input options: The first one may ask for a channel or a role The second one would then take a channel or a role depending on what the user picked on the first argument
Solution:
It ain't possible
Jump to solution
6 Replies
Solution
Favna
Favna2y ago
It ain't possible
Dolliwyx
Dolliwyx2y ago
Would there be a good workaround for this? I'm thinking of probably handling the second argument as a string instead and check whether it's a role or a channel instead. But I'm wondering if there's a better approach
Favna
Favna2y ago
Wild idea but you could have both use autocomplete and then build the results based on the input of the first? Seeing as slash commands don't even have a concept of "first option" and "second option". They can be provided in either order.
Dolliwyx
Dolliwyx2y ago
Yes, it's for a config command and I do plan on using autocomplete on the first argument for the configurable options, and have the second argument take whatever what the user wanted to configure
Favna
Favna2y ago
Well I have nothing but that idea :\
Dolliwyx
Dolliwyx2y ago
welp that's alright, thanks for the help!! <:cat_loves_u:971261609693544478>