import { Command } from '@nestjs/cqrs'; import { CommandResult } from './command-result'; export class AddCommentCommand extends Command { constructor( public readonly actorId: string, public readonly issueId: string, public readonly body: string, /** Comment it answers; a reply to a reply joins the same thread. */ public readonly replyTo: string | null = null, /** A quick poll's options (2–6), if any. */ public readonly poll: string[] | null = null, ) { super(); } }