diff --git a/coolq/cqcode.go b/coolq/cqcode.go index b3ffe85..658ee05 100644 --- a/coolq/cqcode.go +++ b/coolq/cqcode.go @@ -104,7 +104,7 @@ func ToArrayMessage(e []message.IMessageElement, code int64, raw ...bool) (r []M } for _, elem := range e { m := MSG{} - swiadd tch o := elem.(type) { + switch o := elem.(type) { case *message.TextElement: m = MSG{ "type": "text",