Need help with adding a parameter to app_commands.choices #9754
              
                
                  
                  
                    Answered
                  
                  by
                    tailoric
                  
              
          
                  
                    
                      mattskinners
                    
                  
                
                  asked this question in
                Q&A
              
            -
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            tailoric
          
      
      
        Mar 17, 2024 
      
    
    Replies: 1 comment
-
| 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 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        mattskinners
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

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