mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-07-04 13:23:25 +00:00
fix: nil pointer error on guild channel message parser
This commit is contained in:
@ -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(),
|
||||
|
Reference in New Issue
Block a user