Closed
Description
Description
If you create an application command with an auto-complete option as the first argument, and an argument with set choices as another argument, auto-complete requests for the first argument will fail due to the other argument not having a valid value, despite the user not getting to that option yet.
Please find attached screenshots of the failed auto-complete on the web client, and the auto-complete request body and response.
Steps to Reproduce
- Create an application command with the first argument being a required autocomplete text input, and the second option being a required text input with 2 different choices (i.e. choice-1 and choice-2).
- Begin typing in this command and press TAB to autocomplete the command, as this will then add the other arguments automatically which then causes the bug.
- Observe the auto-complete request failure.
Expected Behavior
The second option not being set to one of the available choices should be ignored, and the auto-complete request should go through.
Current Behavior
The auto-complete request fails due to the second argument that hasn't been set being invalid.
Screenshots/Videos
Client and System Information
API version 9, web-client build 360320 (38aca73)
Windows 11