Package net.dv8tion.jda.api.entities
Class MessageEmbed.Field
- java.lang.Object
-
- net.dv8tion.jda.api.entities.MessageEmbed.Field
-
- Enclosing class:
- MessageEmbed
public static class MessageEmbed.Field extends Object
Represents a field in an embed. A single embed contains an array of embed fields, each with a name and value, and a boolean determining if the field can display on the same line as previous fields if there is enough space horizontally.- Since:
- 3.0
- Author:
- John A. Grosh
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()The name of the fieldStringgetValue()The value of the fieldbooleanisInline()If the field is in line.
-
-
-
Method Detail
-
getName
@Nullable public String getName()
The name of the field- Returns:
- Possibly-null String containing the name of the field.
-
getValue
@Nullable public String getValue()
The value of the field- Returns:
- Possibly-null String containing the value (contents) of the field.
-
isInline
public boolean isInline()
If the field is in line.- Returns:
- true if the field can be in line with other fields, false otherwise.
-
-