Skip to content

Need help with adding a parameter to app_commands.choices #9754

Answered by tailoric
mattskinners asked this question in Q&A
Discussion options

You must be logged in to vote

This is not possible with slash commands currently. Discord doesn't have inter-parameter dependency rules that allows you to activate fields / making them required because of a choice inside another option...

You could handle it in code that it will tell the user an error when "Custom" was chosen without a date and have date as an optional parameter but inside the UI what you want is not possible as a discord limitation

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattskinners
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants