From 4f9345e4e5e81e2f34889e4e3a52d00f0f6f86c8 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 21 Mar 2024 12:23:16 +0800 Subject: [PATCH] fix: send forward msg message param --- src/onebot11/action/go-cqhttp/SendForwardMsg.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/onebot11/action/go-cqhttp/SendForwardMsg.ts b/src/onebot11/action/go-cqhttp/SendForwardMsg.ts index 98aa1f9..6512090 100644 --- a/src/onebot11/action/go-cqhttp/SendForwardMsg.ts +++ b/src/onebot11/action/go-cqhttp/SendForwardMsg.ts @@ -6,7 +6,9 @@ export class GoCQHTTPSendGroupForwardMsg extends SendMsg { actionName = ActionName.GoCQHTTP_SendGroupForwardMsg; protected async check(payload: OB11PostSendMsg) { - payload.message = this.convertMessage2List(payload.messages); + if (payload.messages){ + payload.message = this.convertMessage2List(payload.messages); + } return super.check(payload); } }