mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 22:47:04 +01:00
Remove member if not found
This commit is contained in:
parent
f7bed7085e
commit
57d23e8d68
@ -134,8 +134,7 @@ class RedisQueue:
|
|||||||
if not member:
|
if not member:
|
||||||
members = await guild.query_members(user_ids=[int(params["user_id"])], cache=True)
|
members = await guild.query_members(user_ids=[int(params["user_id"])], cache=True)
|
||||||
if not len(members):
|
if not len(members):
|
||||||
await self.connection.set(key, "")
|
self.remove_member(member)
|
||||||
await self.enforce_expiring_key(key)
|
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
member = members[0]
|
member = members[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user