Browse Source

Remove member count tracking.

pull/162/head
Luke 5 years ago
parent
commit
ed8e3528f0
  1. 8
      disco/state.py

8
disco/state.py

@ -290,11 +290,6 @@ class State(object):
if event.member.guild_id not in self.guilds:
return
if (self.guilds[event.member.guild_id].member_count is not UNSET and
# Avoid adding duplicate events to member_count.
event.member.id not in self.guilds[event.member.guild_id].members):
self.guilds[event.member.guild_id].member_count += 1
self.guilds[event.member.guild_id].members[event.member.id] = event.member
def on_guild_member_update(self, event):
@ -313,9 +308,6 @@ class State(object):
if event.user.id not in self.guilds[event.guild_id].members:
return
if self.guilds[event.guild_id].member_count is not UNSET:
self.guilds[event.guild_id].member_count -= 1
del self.guilds[event.guild_id].members[event.user.id]
def on_guild_members_chunk(self, event):

Loading…
Cancel
Save