fix: error
This commit is contained in:
1 parent
a4b20a7239
commit
d79dab91fd
1 file changed
+1
-1
@@ -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