Skip to content

Slash command mentions not using localised names #5518

Open
@Shepard

Description

@Shepard

Description

Mentioning slash commands using the new syntax </command name:id> will always show the exact string entered before the colon, whether that's an existing command or not.
I was hoping that, if it could match it to an existing command, it would use the name_localizations of that command (and any mentiond sub command groups and sub commands) to show the mention in the locale of the user reading the message.

Note that just putting a localised name in the mention in the first place doesn't work either. Clicking on those doesn't do anything. That's probably the same issue as #5462. And that would also only make sense if it's an ephemeral message.

Steps to Reproduce

  • Set up a bot with a slash command named help that has name_localizations including hilfe for locale 'de'.
  • Set your Discord desktop client's language to German.
  • Get the id of the command. Let's say the id is '123'.
  • Write a message in chat which includes a mention of that command using the syntax </help:123> (or have the bot send such a message, doesn't make a difference).

Expected Behavior

Seeing the mention as /hilfe in the German client.

Current Behavior

The mention will say /help.

Screenshots/Videos

No response

Client and System Information

Stable 150489 (4590418)
Host 1.0.9006
Windows 10 64-Bit (10.0.19043)

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