Don't undo b1nzy's work.
This commit is contained in:
parent
87b2daa832
commit
408bbb54b6
1 changed files with 2 additions and 1 deletions
3
state.go
3
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
|
||||
|
|
Loading…
Reference in a new issue