def hex_colour(color: int) -> str:
    """
    Converts an integer representation of a colour to the RGB hex value.

    As we are using a Discord dark theme analogue, black colours are returned as white instead.
    """
    colour = f"#{color:0>6X}"
    return colour if colour != "#000000" else "#FFFFFF"