1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 11:33:48 +08:00

Update cqcode.go

This commit is contained in:
XYenon 2020-09-23 23:08:11 +08:00 committed by GitHub
parent dddb3d2299
commit cec81b7ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,6 @@ func ToArrayMessage(e []message.IMessageElement, code int64, raw ...bool) (r []M
"type": "text", "type": "text",
"data": map[string]string{"text": o.Content}, "data": map[string]string{"text": o.Content},
} }
case *message.ReplyElement:
continue
case *message.LightAppElement: case *message.LightAppElement:
//m = MSG{ //m = MSG{
// "type": "text", // "type": "text",
@ -144,6 +142,8 @@ func ToArrayMessage(e []message.IMessageElement, code int64, raw ...bool) (r []M
"data": map[string]string{"data": o.Content, "resid": fmt.Sprintf("%d", o.Id)}, "data": map[string]string{"data": o.Content, "resid": fmt.Sprintf("%d", o.Id)},
} }
} }
default:
continue
} }
r = append(r, m) r = append(r, m)
} }