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 int
getHeight()
The height of this image@NotNull String
getProxyUrl()
The proxy url for this image, this is used to render previews in the discord client.@NotNull String
getUrl()
The URL fot this imageint
getWidth()
The width of this imageString
toJSONString()
String
toString()
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:
toJSONString
in interfaceorg.json.JSONString
-
-