Revert "Set redis guildmember key to empty if remove from server"

This reverts commit bcabb8188a.
This commit is contained in:
Jeremy Zhang 2021-03-12 16:49:37 -08:00
parent a7ace1029e
commit 10e01c57ed

View File

@ -191,9 +191,7 @@ class RedisQueue:
guild_member_key = "Queue/guilds/{}/members/{}".format(guild.id, member.id) guild_member_key = "Queue/guilds/{}/members/{}".format(guild.id, member.id)
list_members_key = "Queue/guilds/{}/members".format(guild.id) list_members_key = "Queue/guilds/{}/members".format(guild.id)
await self.connection.srem(list_members_key, [json.dumps({"user_id": member.id}, separators=(',', ':'))]) await self.connection.srem(list_members_key, [json.dumps({"user_id": member.id}, separators=(',', ':'))])
#await self.connection.delete([guild_member_key]) await self.connection.delete([guild_member_key])
await self.connection.set(guild_member_key, "")
await self.enforce_expiring_key(guild_member_key)
async def update_member(self, member): async def update_member(self, member):
await self.remove_member(member) await self.remove_member(member)