Package net.dv8tion.jda.api.entities
Class MessageEmbed.ImageInfo
- java.lang.Object
-
- net.dv8tion.jda.api.entities.MessageEmbed.ImageInfo
-
- Enclosing class:
- MessageEmbed
public static class MessageEmbed.ImageInfo extends java.lang.Object
Represents the information provided to embed an image.
-
-
Constructor Summary
Constructors Constructor Description ImageInfo(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 image.java.lang.String
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.java.lang.String
getUrl()
The url of the image.int
getWidth()
The width of the image.
-
-
-
Method Detail
-
getUrl
@Nullable public java.lang.String getUrl()
The url of the image.- Returns:
- Possibly-null String containing the image url.
-
getProxyUrl
@Nullable public java.lang.String 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.
-
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.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-