mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 01:51:22 +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:
|
||||
members = await guild.query_members(user_ids=[int(params["user_id"])], cache=True)
|
||||
if not len(members):
|
||||
await self.connection.set(key, "")
|
||||
await self.enforce_expiring_key(key)
|
||||
self.remove_member(member)
|
||||
return
|
||||
else:
|
||||
member = members[0]
|
||||
|
Loading…
Reference in New Issue
Block a user