Skip to content

Can't select second auto-complete option with same name #8565

Description

@lulu5239

Description

If multiple auto-complete options has the same name, selecting any of these options will make us select the first. There is this bug both when using slash commands from the text box and the app launcher. I'm guessing that a part of the mobile app looks for the first option with the selected name then take its value.

I really recommend fixing this sort of bugs before asking developers to remove prefix commands. I think that prefix commands should continue to exist because : less lag (they don't require the app to search through sometimes many available slash commands), they work on servers with more than 50 bots, they are copy-pastable (the "Copy command" button in the mobile app doesn't really work; the mobile app sometimes forget from which bot we were trying to use a command) and they are easier to use (don't need to select a command/bot; we annoyingly can't search for sub-commands using a space in the mobile app, for example typing /ds p to find /cards pull, since an update months ago). This paragraph might look off-topic but I thought that Discord staff wanted feedback about slash commands.

Steps to Reproduce

  • Find a slash command with an option with auto-complete enabled, and where multiple options has the same name;
  • Select one of the options that share the same name except for the first option;
  • Send the command.

Expected Behavior

The bot should receive that you chose the option you selected.

Current Behavior

The bot will instead receive that you chose the first option with the name of the option that you selected.

Screenshots/Videos

I'm sending a video of being a victim of this bug (it really is annoying when playing at least one game bot). A nearby message in the channel shows the source code of my /autocomplete-bug command. If you want to complain that this bug isn't an API bug, look more in that channel named "bugs".

(The video was split into two parts because of the 10 Mo size limit...)
https://github.com/user-attachments/assets/03b48aa7-a4ac-45a8-b4ad-5f1c51f19e95
https://github.com/user-attachments/assets/e0cfb1ff-fa63-4304-9d3f-d6d9c8830a4f

Client and System Information

App: 342.16 (342016) googleRelease; Manifest: "001a658e5337edd283b44c91ae552790"; Build Override: N/A; Device: a33x (SM-A336B) OS 36;
This bug has been existing for many months! I'm only bothering now to report it here because I've heard that Discord wants bots to not have prefix commands...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions