Class MessageEmbed.Thumbnail
java.lang.Object
net.dv8tion.jda.api.entities.MessageEmbed.Thumbnail
- Enclosing class:
MessageEmbed
Represents the information Discord provided about a thumbnail image that should be
displayed with an embed message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe media type, if available, ornull.The description of the thumbnail (alt text), ornullif none is set.@Unmodifiable Set<MessageEmbed.MessageEmbedMediaFlag> getFlags()Returns an unmodifiable set of allMessageEmbedMediaFlagspresent for this thumbnail.longReturns the raw media embed flags of this thumbnail.intThe height of the thumbnail image.The placeholder of the thumbnail, ornull.getProxy()Returns anAttachmentProxyfor this embed thumbnail.The Discord proxied url of the thumbnail image.getUrl()The web url of this thumbnail image.intgetWidth()The width of the thumbnail image.inthashCode()
-
Constructor Details
-
Thumbnail
public Thumbnail(String url, String proxyUrl, int width, int height, String description, String contentType, ThumbHashPlaceholder placeholder, int flags)
-
-
Method Details
-
getUrl
The web url of this thumbnail image.- Returns:
- Possibly-null String containing the url of the displayed image.
-
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.
-
getProxy
Returns anAttachmentProxyfor this embed thumbnail.- Returns:
- Possibly-null
AttachmentProxyof this embed thumbnail - See Also:
-
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.
-
getDescription
The description of the thumbnail (alt text), ornullif none is set.- Returns:
- Description of the thumbnail, or
null
-
getContentType
- Returns:
- The media type, or
null
-
getPlaceholder
The placeholder of the thumbnail, ornull.- Returns:
- The placeholder or
null - See Also:
-
getFlagsRaw
public long getFlagsRaw()Returns the raw media embed flags of this thumbnail.- Returns:
- The raw media flags
- See Also:
-
getFlags
Returns an unmodifiable set of allMessageEmbedMediaFlagspresent for this thumbnail.- Returns:
- Unmodifiable set of present
MessageEmbedMediaFlags - See Also:
-
equals
-
hashCode
-