Calypso
Calypso
SIASapphire - Imagine a framework
Created by Calypso on 4/20/2024 in #sapphire-support
Registering Context Commands
Hello I want to register a context command with this code :
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),
);
}
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),
);
}
It's work but I don't have capital letter on the first letter V. Why ?
29 replies