def METHOD_NAME(self, username):
    endpoint = "/users/show"
    data = {"username": username}
    if "@" in username:
        data["username"], _, data["host"] = username.partition("@")
    return self._call(endpoint, data)["id"]