Skip to content

Application command auto-complete validation bug #7350

Closed
@solithcy

Description

@solithcy

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

  1. 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).
  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.
  3. 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

Command with the auto-complete options

Request body

Request response

Client and System Information

API version 9, web-client build 360320 (38aca73)
Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions