def user_to_color(user) -> int:
    """Gets the color for a given user.

    Example:

        `discord.Embed(color=user_to_color(ctx.author))`

    :param user: Any user.
    :type user: discord.User
    :return: Any color.
    :rtype: int
    """
    return int(int(user.discriminator) / 9999 * 0xffffff)