mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: error
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user