public static class WebhookEmbed.EmbedField
extends java.lang.Object
implements org.json.JSONString
inline.| Constructor and Description |
|---|
EmbedField(boolean inline,
@NotNull java.lang.String name,
@NotNull java.lang.String value)
Creates a new embed field
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getName()
The name of this field.
|
@NotNull java.lang.String |
getValue()
The value of this field.
|
boolean |
isInline()
Whether this field should share a row with other fields
|
java.lang.String |
toJSONString() |
java.lang.String |
toString()
JSON representation of this field
|
public EmbedField(boolean inline,
@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull java.lang.String value)
inline - Whether or not this should share a row with other fieldsname - The name of the fieldvalue - The value of the fieldWebhookEmbedBuilder.addField(club.minnced.discord.webhook.send.WebhookEmbed.EmbedField)public boolean isInline()
@NotNull public @NotNull java.lang.String getName()
@NotNull public @NotNull java.lang.String getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toJSONString()
toJSONString in interface org.json.JSONString