import { IsString, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class SendCommandDto {
  @ApiProperty({
    example: 'say "Hello, players!"',
    description: 'Console command to execute on the server',
  })
  @IsString()
  @IsNotEmpty()
  command: string;
}
