mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 10:01:21 +01:00
Add guild member fix
This commit is contained in:
parent
e1a3dd3556
commit
cf03c70398
@ -186,6 +186,9 @@ class RedisQueue:
|
|||||||
exists = await self.connection.exists(key)
|
exists = await self.connection.exists(key)
|
||||||
if exists:
|
if exists:
|
||||||
await self.connection.sadd(key, [json.dumps({"user_id": member.id}, separators=(',', ':'))])
|
await self.connection.sadd(key, [json.dumps({"user_id": member.id}, separators=(',', ':'))])
|
||||||
|
get_guild_member_key = "Queue/guilds/{}/members/{}".format(member.guild.id, member.id)
|
||||||
|
get_guild_member_param = {"guild_id": member.guild.id, "user_id": member.id}
|
||||||
|
await self.on_get_guild_member(get_guild_member_key, get_guild_member_param)
|
||||||
|
|
||||||
async def remove_member(self, member, guild=None):
|
async def remove_member(self, member, guild=None):
|
||||||
if not guild:
|
if not guild:
|
||||||
|
Loading…
Reference in New Issue
Block a user