Class Embed.Field

java.lang.Object
discord4j.core.object.Embed.Field
Enclosing class:
Embed

public final class Embed.Field extends Object
A field for a Discord embed.
  • Field Details

    • MAX_NAME_LENGTH

      public static final int MAX_NAME_LENGTH
      The maximum amount of characters that can be in a field name.
      See Also:
    • MAX_VALUE_LENGTH

      public static final int MAX_VALUE_LENGTH
      The maximum amount of characters that can be in a field value.
      See Also:
  • Method Details

    • getEmbed

      public Embed getEmbed()
      Gets the Embed 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.