def check_user_permission(guild_id, id): guilds = get_user_managed_servers_safe() for guild in guilds: if guild['id'] == guild_id: return user_has_permission(guild['permissions'], id) or guild['owner'] return False Example 35Source...