Distinguish context menu commands name/label/description #3670
Replies: 13 comments
-
this is intended functionality, logical, and documented (in danger boxes too). |
Beta Was this translation helpful? Give feedback.
-
@advaith1, I understand. But obviously we need a feature to override a context menu entry text with human-readable description, instead of command system name. |
Beta Was this translation helpful? Give feedback.
-
you should just make the name human-readable... |
Beta Was this translation helpful? Give feedback.
-
This has a lot of disadvanages:
|
Beta Was this translation helpful? Give feedback.
-
I agree with @HanabishiRecca here - having separation between the UI string and the system identifier is highly desirable, especially considering the various limitations imposed on them. Going beyond just the menu entries themselves, a split like this would be nigh required if Discord implements a way to nest context menu options, since they'd likely be sharing groups with other command types. |
Beta Was this translation helpful? Give feedback.
-
Completely agree, the fact that the names of application commands are now not unique per scope when the description tag is sat there empty feels like a major oversight. It would have been much more ergonomic if the name was used internally by us and the description was what was shown to the user. I don't understand why they went with this system. |
Beta Was this translation helpful? Give feedback.
-
Now that I've played with context commands, there's another caveat to this issue - casing is normalized for context command names, which is extremely undesirable if it's meant to be a UI string. What I mean by this is that if I have a name that is, say "Do thing", it becomes normalized to "do thing", which is just plainly inconsistent with Discord's own casing of other context menu items. |
Beta Was this translation helpful? Give feedback.
-
context menu commands can have capital letters (and many do) so I'm not sure what you mean? |
Beta Was this translation helpful? Give feedback.
-
descriptions are unlikely to happen, and even if they did, they would not replace the name in the ui. |
Beta Was this translation helpful? Give feedback.
-
@advaith1 Ah, my apologies, it was a bug on my end. |
Beta Was this translation helpful? Give feedback.
-
@devsnek The ideal API for me would be an entirely new field - |
Beta Was this translation helpful? Give feedback.
-
the primary key here is |
Beta Was this translation helpful? Give feedback.
-
Fine. Are you planning nested context menu commands? If so, will they require entirely separate group constructs, since the existing rules for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When creating new context menu command with
description
field specified:Expected Behavior
Use context menu command description to override it's system name in UI.
Current Behavior
API responding an error.
Beta Was this translation helpful? Give feedback.
All reactions