fix: error

This commit is contained in:
手瓜一十雪
2024-11-24 12:18:16 +08:00
parent 54f805b6e4
commit 7158f25f37

View File

@@ -41,7 +41,7 @@ export class GoCQHTTPGetForwardMsgAction extends OneBotAction<Payload, any> {
for (const msgdata of message.message) { for (const msgdata of message.message) {
if ((msgdata as OB11MessageData).type === OB11MessageDataType.forward) { if ((msgdata as OB11MessageData).type === OB11MessageDataType.forward) {
const newNode = this.createTemplateNode(message); const newNode = this.createTemplateNode(message);
newNode.data.message = await this.parseForward((msgdata as OB11MessageForward).data.content); newNode.data.message = await this.parseForward((msgdata as OB11MessageForward).data.content ?? []);
templateNode.data.message.push(newNode); templateNode.data.message.push(newNode);
} else { } else {