def METHOD_NAME(self, *, ext: str = "png", size: int = 4096) -> typing.Optional[files.URL]:
    """Generate the cover image for this scheduled event, if set.
    Parameters
    ----------
    ext : str
        The extension to use for this URL, defaults to `png`.
        Supports `png`, `jpeg`, `jpg` and `webp`.
    size : int
        The size to set for the URL, defaults to `4096`.
        Can be any power of two between 16 and 4096.
    Returns
    -------
    typing.Optional[hikari.files.URL]
        The URL, or `None` if no cover image is set.
    Raises
    ------
    ValueError
        If `size` is not a power of two between 16 and 4096 (inclusive).
    """
    if self.image_hash is None:
        return None
    return routes.SCHEDULED_EVENT_COVER.compile_to_file(
        urls.CDN_URL, scheduled_event_id=self.id, hash=self.image_hash, size=size, file_format=ext
    )