infinipy/helpers.py
def endpoint_for(user_id):
    """Determines whether an ID belongs to the /user or to /bots endpoint
    """
    req = requests.get(f"https://japi.rest/discord/v1/user/{user_id}").json()
    if "bot" in req["data"] and req["data"]["bot"] == True:
        return f'/bots/{user_id}'
    return f'/user/{user_id}'
Determines whether an ID belongs to the /user or to /bots endpoint
    
Determines whether an ID belongs to the /user or to /bots endpoint
Determines whether an ID belongs to the / user or to / bots endpoint
def endpoint_for(user_id):
    req = requests.get(f"https://japi.rest/discord/v1/user/{user_id}").json()
    if "bot" in req["data"] and req["data"]["bot"] == True:
        return f'/bots/{user_id}'
    return f'/user/{user_id}'
def endpoint_for ( user_id ) : req = requests . get ( f"https://japi.rest/discord/v1/user/{user_id}" ) . json ( ) if "bot" in req [ "data" ] and req [ "data" ] [ "bot" ] == True : return f'/bots/{user_id}' return f'/user/{user_id}'
Determines whether an ID belongs to the /user or to /bots endpoint
Determines whether an ID belongs to the / user or to / bots endpoint
"""Determines whether an ID belongs to the /user or to /bots endpoint
    """
user_id