Package discord4j.core.object
Class Embed.Image
java.lang.Object
discord4j.core.object.Embed.Image
- Enclosing class:
- Embed
An image for a Discord
embed
.-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.EmbedImageData
getData()
Gets the data of the image.getEmbed()
Gets theEmbed
associated to this object.int
Gets the height of the image.Gets a proxied URL of the image.getUrl()
Gets the source URL of the image (only supports http(s) and attachments).int
getWidth()
Gets the width of the image.
-
Method Details
-
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
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
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.
-