Class MessageEmbed.Thumbnail

java.lang.Object
net.dv8tion.jda.api.entities.MessageEmbed.Thumbnail
Enclosing class:
MessageEmbed

public static class MessageEmbed.Thumbnail extends Object
Represents the information Discord provided about a thumbnail image that should be displayed with an embed message.
  • Constructor Details

    • Thumbnail

      public Thumbnail(String url, String proxyUrl, int width, int height)
  • Method Details

    • getUrl

      @Nullable public String getUrl()
      The web url of this thumbnail image.
      Returns:
      Possibly-null String containing the url of the displayed image.
    • getProxyUrl

      @Nullable public String getProxyUrl()
      The Discord proxied url of the thumbnail image.
      This url is used to access the image through Discord instead of directly to prevent ip scraping.
      Returns:
      Possibly-null String containing the proxied url of this image.
    • getWidth

      public int getWidth()
      The width of the thumbnail image.
      Returns:
      Never-negative, Never-zero int containing the width of the image.
    • getHeight

      public int getHeight()
      The height of the thumbnail image.
      Returns:
      Never-negative, Never-zero int containing the height of the image.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object