Class MessageEmbed.Thumbnail

  • Enclosing class:
    MessageEmbed

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

      Constructors 
      Constructor Description
      Thumbnail​(java.lang.String url, java.lang.String proxyUrl, int width, int height)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int getHeight()
      The height of the thumbnail image.
      java.lang.String getProxyUrl()
      The Discord proxied url of the thumbnail image.
      java.lang.String getUrl()
      The web url of this thumbnail image.
      int getWidth()
      The width of the thumbnail image.
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Thumbnail

        public Thumbnail​(java.lang.String url,
                         java.lang.String proxyUrl,
                         int width,
                         int height)
    • Method Detail

      • getUrl

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

        @Nullable
        public java.lang.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​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object