public override registerApplicationCommands(registry: Command.Registry) {
// Use your new method to register the command
registry.registerChatInputCommand(this.toJSON());
}
// Then just add this method to return the JSON
public toJSON() {
return {
name: this.name,
description: this.description,
};
}
public override registerApplicationCommands(registry: Command.Registry) {
// Use your new method to register the command
registry.registerChatInputCommand(this.toJSON());
}
// Then just add this method to return the JSON
public toJSON() {
return {
name: this.name,
description: this.description,
};
}