mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Set empty role list if member does not exist
This commit is contained in:
parent
cf58e83f58
commit
f2d9f13bbc
@ -200,6 +200,8 @@ def check_user_in_guild(guild_id):
|
||||
|
||||
def get_member_roles(guild_id, user_id):
|
||||
q = redisqueue.get_guild_member(guild_id, user_id)
|
||||
if not q:
|
||||
return []
|
||||
roles = q["roles"]
|
||||
role_converted = []
|
||||
for role in roles:
|
||||
|
Loading…
Reference in New Issue
Block a user