def get_rank_id(settings, name_id):
    """Returns the Discord Role ID for specified name_id"""

    role_ladder = settings["role_ladder"]

    for role in role_ladder:
        if role["name_id"] == name_id:
            return role["id"]

    return None