瀏覽代碼

Don't undo b1nzy's work.

Chris Rhodes 8 年之前
父節點
當前提交
408bbb54b6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      state.go

+ 2 - 1
state.go

@@ -68,7 +68,8 @@ func (s *State) GuildAdd(guild *Guild) error {
 		s.Lock()
 		defer s.Unlock()
 
-		if !g.Unavailable {
+		// If this guild already exists with data, don't stomp on props.
+		if g.Unavailable != nil && !*g.Unavailable {
 			guild.Members = g.Members
 			guild.Presences = g.Presences
 			guild.Channels = g.Channels