mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 22:47:04 +01:00
Set redis guildmember key to empty if remove from server
This commit is contained in:
parent
38ab257d6e
commit
bcabb8188a
@ -191,7 +191,9 @@ 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user