mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-06-19 14:05:03 +08:00
fix: convert to array missing guild image
This commit is contained in:
parent
8e0d336032
commit
df6b914414
@ -234,6 +234,12 @@ func ToArrayMessage(e []message.IMessageElement, source MessageSource) (r []glob
|
||||
"type": "image",
|
||||
"data": data,
|
||||
}
|
||||
case *message.GuildImageElement:
|
||||
data := map[string]string{"file": hex.EncodeToString(o.Md5) + ".image", "url": o.Url}
|
||||
m = global.MSG{
|
||||
"type": "image",
|
||||
"data": data,
|
||||
}
|
||||
case *message.FriendImageElement:
|
||||
data := map[string]string{"file": hex.EncodeToString(o.Md5) + ".image", "url": o.Url}
|
||||
if o.Flash {
|
||||
|
Loading…
x
Reference in New Issue
Block a user