Skip to content

Commit

Permalink
fix: convert to array missing guild image
Browse files Browse the repository at this point in the history
  • Loading branch information
Akegarasu committed Nov 13, 2021
1 parent 8e0d336 commit df6b914
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coolq/cqcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit df6b914

Please sign in to comment.