Class ReadonlyEmbed.EmbedImage

    • Constructor Detail

      • EmbedImage

        public EmbedImage​(@NotNull
                          @NotNull String url,
                          @NotNull
                          @NotNull String proxyUrl,
                          int width,
                          int height)
    • Method Detail

      • getUrl

        @NotNull
        public @NotNull String getUrl()
        The URL fot this image
        Returns:
        The URL
      • getProxyUrl

        @NotNull
        @JSONPropertyName("proxy_url")
        public @NotNull String getProxyUrl()
        The proxy url for this image, this is used to render previews in the discord client.
        Returns:
        The proxy url
      • getWidth

        public int getWidth()
        The width of this image
        Returns:
        The width
      • getHeight

        public int getHeight()
        The height of this image
        Returns:
        The height
      • toString

        public String toString()
        JSON representation of this provider
        Overrides:
        toString in class Object
        Returns:
        The JSON representation
      • toJSONString

        public String toJSONString()
        Specified by:
        toJSONString in interface org.json.JSONString