Package discord4j.core.object
Class Embed.Field
java.lang.Object
discord4j.core.object.Embed.Field
- Enclosing class:
- Embed
A field for a Discord
embed
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The maximum amount of characters that can be in a field name.static final int
The maximum amount of characters that can be in a field value. -
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.EmbedFieldData
getData()
Gets the data of the field.getEmbed()
Gets theEmbed
associated to this object.getName()
Gets the name of the field.getValue()
Gets the value of the field.boolean
isInline()
Gets whether or not this field should display inline.
-
Field Details
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTHThe maximum amount of characters that can be in a field name.- See Also:
-
MAX_VALUE_LENGTH
public static final int MAX_VALUE_LENGTHThe maximum amount of characters that can be in a field value.- See Also:
-
-
Method Details
-
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
Gets the name of the field.- Returns:
- The name of the field.
-
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.
-