1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-07 12:43:31 +08:00

Merge pull request #534 from wdvxdr1123/patch-1

fix none msg
This commit is contained in:
Mrs4s 2021-01-04 01:05:23 +08:00 committed by GitHub
commit 6769421b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ func (e *PokeElement) Type() message.ElementType {
}
func ToArrayMessage(e []message.IMessageElement, code int64, raw ...bool) (r []MSG) {
r = []MSG{}
ur := false
if len(raw) != 0 {
ur = raw[0]