public static class WebhookEmbed.EmbedAuthor
extends java.lang.Object
implements org.json.JSONString
| Constructor and Description |
|---|
EmbedAuthor(@NotNull java.lang.String name,
@Nullable java.lang.String iconUrl,
@Nullable java.lang.String url)
Creates a new embed author
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.lang.String |
getIconUrl()
The iconUrl of this author.
|
@NotNull java.lang.String |
getName()
The name of the author, this is the only visible text of this component.
|
@Nullable java.lang.String |
getUrl()
The url of this author.
|
java.lang.String |
toJSONString() |
java.lang.String |
toString()
JSON representation of this author
|
public EmbedAuthor(@NotNull
@NotNull java.lang.String name,
@Nullable
@Nullable java.lang.String iconUrl,
@Nullable
@Nullable java.lang.String url)
name - The name of the authoriconUrl - The (nullable) icon url of the authorurl - The (nullable) hyperlink of the authorWebhookEmbedBuilder.setAuthor(club.minnced.discord.webhook.send.WebhookEmbed.EmbedAuthor)@NotNull public @NotNull java.lang.String getName()
@Nullable @JSONPropertyName(value="icon_url") public @Nullable java.lang.String getIconUrl()
@Nullable public @Nullable java.lang.String getUrl()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toJSONString()
toJSONString in interface org.json.JSONString