framework
framework copied to clipboard
request: rawName property for context commands
Is there an existing issue or pull request for this?
- [X] I have searched the existing issues and pull requests
Feature description
The problem is that the command name is set to lowercase :
export class ValidRoroCommand extends Command {
constructor(context, options) {
super(context, {
...options,
name: "Valide",
});
}
registerApplicationCommands(registry) {
registry.registerContextMenuCommand(builder =>
builder //
.setName(this.name)
.setType(ApplicationCommandType.Message),
);
}
We can create a rawName property for context commands for don't break actuals commands
Desired solution
Create a rawName property
Alternatives considered
Don't use lowercase() on context commands
Additional context
No response