-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application command auto-complete validation bug #7350
Comments
Same here, this had me running in circles for 2 days trying to figure out why my autocomplete is failing LOL. My temp fix was to move the option(s) that uses choices to the front 👍 |
I've have had the same issue as well; |
Experiencing this too! I initially thought it was an issue on my end and spent hours debugging. I can confirm that the same error appears in the network tab. |
I have the same issue. |
spent 2 days trying to fix this issue, i thought i was going crazy until i checked the network logs |
Got the same issue |
Soooooooo.. When the user starts typing and auto-completing the first argument, the command system tries to validate all required arguments for the interaction. auto-complete request fails because all required arguments are validated... |
Same here, but it works fine in Mobile Devices App for me. |
I'm having the same issue. |
Thanks everyone for this report + comments! This bug popped up as a result of some validation fixes + cleanup, and tests didn't catch this specific scenario -.- I've pushed a fix to Canary + PTB for the examples in this thread. Please let me know if any of your autocomplete commands are still failing validation but were working last week. |
Hey Auralytical, thanks for following up! Just tested in Canary Discord [canary 361564 (edcb982)]. It still don't work and also stopped working in Mobile Devices as well! I have some commands with Autocomplete that have also Choices and UserOption. |
Seems to work for me on canary 362011 (125f4be), thanks!! |
@Rodaviva29 - I'm a little surprised this affects mobile too - some of the recent changes touch shared code, but I believe most of it was specific to web/desktop o.O Either way, if it's still broken, please post an example command and i'll look into it |
@Auralytical , nevermind, when all this happened I started the development build with a different MongoDB collection and forgot about that part. >.<, thank you so much for your help! Keep it up! It works fine in all type of devices. |
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
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
The text was updated successfully, but these errors were encountered: