Package discord4j.core.object
Class Embed.Image
- java.lang.Object
-
- discord4j.core.object.Embed.Image
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description discord4j.discordjson.json.EmbedImageDatagetData()Gets the data of the image.EmbedgetEmbed()Gets theEmbedassociated to this object.intgetHeight()Gets the height of the image.StringgetProxyUrl()Gets a proxied URL of the image.StringgetUrl()Gets the source URL of the image (only supports http(s) and attachments).intgetWidth()Gets the width of the image.
-
-
-
Method Detail
-
getEmbed
public Embed getEmbed()
Gets theEmbedassociated to this object.- Returns:
- The
Embedassociated to this object.
-
getData
public discord4j.discordjson.json.EmbedImageData getData()
Gets the data of the image.- Returns:
- The data of the image.
-
getUrl
public String getUrl()
Gets the source URL of the image (only supports http(s) and attachments).- Returns:
- The source URL of the image (only supports http(s) and attachments).
-
getProxyUrl
public String getProxyUrl()
Gets a proxied URL of the image.- Returns:
- A proxied URL of the image.
-
getHeight
public int getHeight()
Gets the height of the image.- Returns:
- The height of the image.
-
getWidth
public int getWidth()
Gets the width of the image.- Returns:
- The width of the image.
-
-