From fe4427c0762c7a38a975b7cf10d25d6df5cf119d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 29 Sep 2024 12:30:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20message=E5=AD=97=E6=AE=B5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=20#415?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/go-cqhttp/GetForwardMsg.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/onebot/action/go-cqhttp/GetForwardMsg.ts b/src/onebot/action/go-cqhttp/GetForwardMsg.ts index 29e2dee3..9d75f5e3 100644 --- a/src/onebot/action/go-cqhttp/GetForwardMsg.ts +++ b/src/onebot/action/go-cqhttp/GetForwardMsg.ts @@ -46,7 +46,9 @@ export class GoCQHTTPGetForwardMsgAction extends BaseAction { for (const msgdata of message.message) { if ((msgdata as OB11MessageData).type === OB11MessageDataType.forward) { const newNode = this.createTemplateNode(message); + console.log(msgdata); newNode.data.content = await this.parseForward((msgdata as OB11MessageForward).data.content); + templateNode.data.message.push(newNode); } else { templateNode.data.message.push(msgdata as OB11MessageData); @@ -88,7 +90,7 @@ export class GoCQHTTPGetForwardMsgAction extends BaseAction { }))).filter(msg => !!msg); if (this.obContext.configLoader.configData.messagePostFormat === 'array') { - return await this.parseForward(messages); + return { message: await this.parseForward(messages) }; } messages.forEach(msg => {