Skip to content

Commit

Permalink
Update cqcode.go (#2001)
Browse files Browse the repository at this point in the history
fix #1998
  • Loading branch information
KazeFx2 authored Mar 20, 2023
1 parent 82ecf19 commit 008d546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coolq/cqcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func (bot *CQBot) ConvertElement(spec *onebot.Spec, elem msg.Element, sourceType
return bot.reply(spec, elem, sourceType)
case "forward":
id := elem.Get("id")
if id != "" {
if id == "" {
return nil, errors.New("forward 消息中必须包含 id")
}
fwdMsg := bot.Client.DownloadForwardMessage(id)
Expand Down

0 comments on commit 008d546

Please sign in to comment.