Class MessageEmbed.ImageInfo
java.lang.Object
net.dv8tion.jda.api.entities.MessageEmbed.ImageInfo
- Enclosing class:
MessageEmbed
Represents the information provided to embed an image.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe media type, if available, ornull.The description of the image (alt text), ornullif none is set.@Unmodifiable Set<MessageEmbed.MessageEmbedMediaFlag> getFlags()Returns an unmodifiable set of allMessageEmbedMediaFlagspresent for this image.longReturns the raw media embed flags of this image.intThe height of the image.The placeholder of the image, ornull.getProxy()Returns anAttachmentProxyfor this embed image.The url of the image, proxied by Discord
This url is used to access the image through Discord instead of directly to prevent ip scraping.getUrl()The url of the image.intgetWidth()The width of the image.inthashCode()
-
Constructor Details
-
ImageInfo
public ImageInfo(String url, String proxyUrl, int width, int height, String description, String contentType, ThumbHashPlaceholder placeholder, int flags)
-
-
Method Details
-
getUrl
The url of the image.- Returns:
- Possibly-null String containing the image url.
-
getProxyUrl
The url of the image, proxied by Discord
This url is used to access the image through Discord instead of directly to prevent ip scraping.- Returns:
- Possibly-null String containing the proxied image url.
-
getProxy
Returns anAttachmentProxyfor this embed image.- Returns:
- Possibly-null
AttachmentProxyof this embed image - See Also:
-
getWidth
public int getWidth()The width of the image.- Returns:
- Non-negative, Non-zero int containing the width of the embedded image.
-
getHeight
public int getHeight()The height of the image.- Returns:
- Non-negative, Non-zero int containing the height of the embedded image.
-
getDescription
The description of the image (alt text), ornullif none is set.- Returns:
- Description of the image, or
null
-
getContentType
- Returns:
- The media type, or
null
-
getPlaceholder
The placeholder of the image, ornull.- Returns:
- The placeholder or
null - See Also:
-
getFlagsRaw
public long getFlagsRaw()Returns the raw media embed flags of this image.- Returns:
- The raw media flags
- See Also:
-
getFlags
Returns an unmodifiable set of allMessageEmbedMediaFlagspresent for this image.- Returns:
- Unmodifiable set of present
MessageEmbedMediaFlags - See Also:
-
equals
-
hashCode
-