Package discord4j.core.object
Class Embed.Field
- java.lang.Object
-
- discord4j.core.object.Embed.Field
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_NAME_LENGTHThe maximum amount of characters that can be in a field name.static intMAX_VALUE_LENGTHThe maximum amount of characters that can be in a field value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description discord4j.discordjson.json.EmbedFieldDatagetData()Gets the data of the field.EmbedgetEmbed()Gets theEmbedassociated to this object.StringgetName()Gets the name of the field.StringgetValue()Gets the value of the field.booleanisInline()Gets whether or not this field should display inline.
-
-
-
Field Detail
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH
The maximum amount of characters that can be in a field name.- See Also:
- Constant Field Values
-
MAX_VALUE_LENGTH
public static final int MAX_VALUE_LENGTH
The maximum amount of characters that can be in a field value.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEmbed
public Embed getEmbed()
Gets theEmbedassociated to this object.- Returns:
- The
Embedassociated to this object.
-
getData
public discord4j.discordjson.json.EmbedFieldData getData()
Gets the data of the field.- Returns:
- The data of the field.
-
getName
public String getName()
Gets the name of the field.- Returns:
- The name of the field.
-
getValue
public String getValue()
Gets the value of the field.- Returns:
- The value of the field.
-
isInline
public boolean isInline()
Gets whether or not this field should display inline.- Returns:
trueif this field should display inline,falseotherwise.
-
-