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
6 Replies
Solution
It ain't possible
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
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.
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
Well I have nothing but that idea :\
welp that's alright, thanks for the help!! <:cat_loves_u:971261609693544478>