def METHOD_NAME(color: Color | dict | COLOR_TYPES | None) -> int | None:
    """
    Process color to a format that can be used by discord.
    Args:
        color: The color to process.
    Returns:
        The processed color value.
    """
    if not color:
        return None
    if isinstance(color, Color):
        return color.value
    if isinstance(color, dict):
        return color["value"]
    if isinstance(color, (tuple, list, str, int)):
        return Color(color).value
    raise ValueError(f"Invalid color: {type(color)}")