Package discord4j.core.object
Class Embed.Field
- java.lang.Object
-
- discord4j.core.object.Embed.Field
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_NAME_LENGTH
The maximum amount of characters that can be in a field name.static int
MAX_VALUE_LENGTH
The 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.EmbedFieldData
getData()
Gets the data of the field.Embed
getEmbed()
Gets theEmbed
associated to this object.String
getName()
Gets the name of the field.String
getValue()
Gets the value of the field.boolean
isInline()
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 theEmbed
associated to this object.- Returns:
- The
Embed
associated 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:
true
if this field should display inline,false
otherwise.
-
-