public static class ReadonlyEmbed.EmbedImage
extends java.lang.Object
implements org.json.JSONString
| Constructor and Description |
|---|
EmbedImage(@NotNull java.lang.String url,
@NotNull java.lang.String proxyUrl,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
The height of this image
|
@NotNull java.lang.String |
getProxyUrl()
The proxy url for this image, this is used
to render previews in the discord client.
|
@NotNull java.lang.String |
getUrl()
The URL fot this image
|
int |
getWidth()
The width of this image
|
java.lang.String |
toJSONString() |
java.lang.String |
toString()
JSON representation of this provider
|
public EmbedImage(@NotNull
@NotNull java.lang.String url,
@NotNull
@NotNull java.lang.String proxyUrl,
int width,
int height)
@NotNull public @NotNull java.lang.String getUrl()
@NotNull @JSONPropertyName(value="proxy_url") public @NotNull java.lang.String getProxyUrl()
public int getWidth()
public int getHeight()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toJSONString()
toJSONString in interface org.json.JSONString