From aff3b01e39c415e290198b900fb3c84193b72a68 Mon Sep 17 00:00:00 2001 From: allburov Date: Sat, 25 Nov 2023 18:03:49 +0700 Subject: [PATCH] [core] Hide mentions --- src/structures/chatting.dto.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/structures/chatting.dto.ts b/src/structures/chatting.dto.ts index 573aaa1e..4ce526ac 100644 --- a/src/structures/chatting.dto.ts +++ b/src/structures/chatting.dto.ts @@ -1,4 +1,9 @@ -import { ApiExtraModels, ApiProperty, getSchemaPath } from '@nestjs/swagger'; +import { + ApiExtraModels, + ApiHideProperty, + ApiProperty, + getSchemaPath, +} from '@nestjs/swagger'; import { IsNumber, IsString } from 'class-validator'; import { SessionBaseRequest, SessionQuery } from './base.dto'; @@ -85,12 +90,7 @@ export class MessageContactVcardRequest extends ChatRequest { export class MessageTextRequest extends ChatRequest { text = 'Hi there!'; - @ApiProperty({ - description: - 'Mention contact in the message. ' + - "The message MUST contain '@123456789' text in order to work with 'mentions' field. e.g: ['123456789@c.us']", - example: undefined, - }) + @ApiHideProperty() mentions?: string[]; }