mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Set empty role list if member does not exist
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user