Skip to content

Commit

Permalink
Revert "Add members from GuildMembersChunk to state (bwmarrin#454)" (b…
Browse files Browse the repository at this point in the history
…wmarrin#455)

This reverts commit e4487b3.
  • Loading branch information
iopred authored Oct 10, 2017
1 parent e4487b3 commit 9ce7456
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions state.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,13 +816,6 @@ func (s *State) OnInterface(se *Session, i interface{}) (err error) {
if s.TrackMembers {
err = s.MemberRemove(t.Member)
}
case *GuildMembersChunk:
if s.TrackMembers {
for i := range t.Members {
t.Members[i].GuildID = t.GuildID
err = s.MemberAdd(t.Members[i])
}
}
case *GuildRoleCreate:
if s.TrackRoles {
err = s.RoleAdd(t.GuildID, t.Role)
Expand Down

0 comments on commit 9ce7456

Please sign in to comment.