Class Embed.Image

  • Enclosing class:
    Embed

    public final class Embed.Image
    extends Object
    An image for a Discord embed.
    • Method Detail

      • getEmbed

        public Embed getEmbed()
        Gets the Embed associated to this object.
        Returns:
        The Embed associated to this object.
      • getData

        public discord4j.discordjson.json.EmbedImageData getData()
        Gets the data of the image.
        Returns:
        The data of the image.
      • getUrl

        @Nullable
        public String getUrl()
        Gets the source URL of the image (only supports http(s) and attachments).
        Returns:
        The source URL of the image (only supports http(s) and attachments).
      • getProxyUrl

        @Nullable
        public String getProxyUrl()
        Gets a proxied URL of the image.
        Returns:
        A proxied URL of the image.
      • getHeight

        public int getHeight()
        Gets the height of the image.
        Returns:
        The height of the image.
      • getWidth

        public int getWidth()
        Gets the width of the image.
        Returns:
        The width of the image.