Class ReadonlyEmbed.EmbedImage
- java.lang.Object
-
- club.minnced.discord.webhook.receive.ReadonlyEmbed.EmbedImage
-
- All Implemented Interfaces:
org.json.JSONString
- Enclosing class:
- ReadonlyEmbed
public static class ReadonlyEmbed.EmbedImage extends Object implements org.json.JSONString
POJO containing meta-data about an embed image component
-
-
Constructor Summary
Constructors Constructor Description EmbedImage(@NotNull String url, @NotNull String proxyUrl, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()The height of this image@NotNull StringgetProxyUrl()The proxy url for this image, this is used to render previews in the discord client.@NotNull StringgetUrl()The URL fot this imageintgetWidth()The width of this imageStringtoJSONString()StringtoString()JSON representation of this provider
-
-
-
Method Detail
-
getUrl
@NotNull public @NotNull String getUrl()
The URL fot this image- Returns:
- The URL
-
getProxyUrl
@NotNull @JSONPropertyName("proxy_url") public @NotNull String getProxyUrl()The proxy url for this image, this is used to render previews in the discord client.- Returns:
- The proxy url
-
getWidth
public int getWidth()
The width of this image- Returns:
- The width
-
getHeight
public int getHeight()
The height of this image- Returns:
- The height
-
toString
public String toString()
JSON representation of this provider
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfaceorg.json.JSONString
-
-