framework icon indicating copy to clipboard operation
framework copied to clipboard

request: rawName property for context commands

Open Mathie01 opened this issue 1 year ago • 0 comments

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

Mathie01 avatar Apr 21 '24 15:04 Mathie01