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.EmbedImageData
getData()
Gets the data of the image.Embed
getEmbed()
Gets theEmbed
associated to this object.int
getHeight()
Gets the height of the image.String
getProxyUrl()
Gets a proxied URL of the image.String
getUrl()
Gets the source URL of the image (only supports http(s) and attachments).int
getWidth()
Gets the width of the image.
-
-
-
Method Detail
-
getEmbed
public Embed getEmbed()
Gets theEmbed
associated to this object.- Returns:
- The
Embed
associated 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.
-
-