Class ImageUtil

java.lang.Object
discord4j.core.util.ImageUtil

public final class ImageUtil extends Object
An utility class for image processing.
  • Method Details

    • getUrl

      public static String getUrl(String path, Image.Format format)
      Gets the URL utilizing a path and the Image.Format the URL should represent.
      Parameters:
      path - The path of the image; excluding the extension. Must be non-null.
      format - The Image.Format the URL should represent. Must be non-null.
      Returns:
      The URL utilizing the path and the Image.Format the URL represents.