Class EmbedFieldProperties
public class EmbedFieldProperties
- Inheritance
-
EmbedFieldProperties
- Inherited Members
Constructors
EmbedFieldProperties()
public EmbedFieldProperties()
Properties
Inline
Whether or not the field should display inline.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("inline")]
public bool Inline { get; set; }
Property Value
Name
Name of the field.
[JsonConverter(typeof(EmbedFieldProperties.EmptyWhenNullStringConverter))]
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
Value
Value of the field.
[JsonConverter(typeof(EmbedFieldProperties.EmptyWhenNullStringConverter))]
[JsonPropertyName("value")]
public string? Value { get; set; }
Property Value
Methods
WithInline(bool)
Whether or not the field should display inline.
public EmbedFieldProperties WithInline(bool inline = true)
Parameters
inline
bool
Returns
WithName(string?)
Name of the field.
public EmbedFieldProperties WithName(string? name)
Parameters
name
string
Returns
WithValue(string?)
Value of the field.
public EmbedFieldProperties WithValue(string? value)
Parameters
value
string