discord-api-docs
discord-api-docs copied to clipboard
Localised names of message commands not used in displayed interaction reply
Description
When I use a slash command, the bot's interaction reply will be shown with a little header in the client: It says "$username used /blah". If the command has a localised name in my client's language, that name is shown in that header. (I couldn't test what language it is shown in for other users - hopefully the one for their locale.)
However, if I use a message command and the bot replies, the header uses the default name of the command, not the localised one. (In the context menu where I can click on the command, the correct localised name is used.)
Steps to Reproduce
- Set up a bot with a message command that has name_localizations in, say, the 'de' locale. Program the bot such that it will reply with a message to interactions received for that command.
- Set your Discord desktop client's language to German.
- Right-click on a message, select "Apps" and find the message command in question. Notice that the German name is shown here.
- Click the message command.
Expected Behavior
The bot's reply should show a line above it that reads "$username verwendet $commandNameInGerman". (Side note: The German translation of this line uses present tense whereas the English one uses past tense.)
Current Behavior
The bot's reply shows a line above it that reads "$username verwendet $defaultCommandName".
Screenshots/Videos
Client and System Information
Desktop program Stable 141352 (cf83f8c) Host 1.0.9006 Windows 10 64-Bit (10.0.19043) With build override feature/web-slash-command-localization
Hi, we believe this has been fixed already. Can you confirm whether this is still an issue?
Hi, we believe this has been fixed already. Can you confirm whether this is still an issue?
Sadly this is still an issue as described.
We had a similar issue with slash commands that was fixed. We'll look into fixing this for non-slash commands.
@yonilerner any updates on this? Because it's still pretty much a thing.