1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 20:13:50 +08:00

fix none msg

This commit is contained in:
wdvxdr 2021-01-03 11:08:11 +08:00
parent 808c275f3d
commit 9c81b81820

View File

@ -104,6 +104,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]