diff --git a/client/guild_msg.go b/client/guild_msg.go index 7e6bc9aa..ad9d5c2c 100644 --- a/client/guild_msg.go +++ b/client/guild_msg.go @@ -325,6 +325,9 @@ func (s *GuildService) parseGuildChannelMessage(msg *channel.ChannelMsgContent) if guild == nil { return nil // todo: sync guild info } + if msg.Body == nil || msg.Body.RichText == nil { + return nil + } // mem := guild.FindMember(msg.Head.RoutingHead.GetFromTinyid()) return &message.GuildChannelMessage{ Id: msg.Head.ContentHead.GetSeq(),