Class EmbedFieldProperties
Contains information about an embed field, of which a maximum of 25 can be set per embed.
public class EmbedFieldProperties
- Inheritance
-
EmbedFieldProperties
- Inherited Members
Constructors
EmbedFieldProperties()
public EmbedFieldProperties()
Properties
Inline
When set alongside another field with Inline set, displays the fields side by side when supported.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("inline")]
public bool Inline { get; set; }
Property Value
Name
Equivalent to Title but localised to a field, limited to 256 characters.
[JsonConverter(typeof(EmbedFieldProperties.EmptyWhenNullStringConverter))]
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
Value
Equivalent to Description but localised to a field, limited to 1024 characters.
[JsonConverter(typeof(EmbedFieldProperties.EmptyWhenNullStringConverter))]
[JsonPropertyName("value")]
public string? Value { get; set; }
Property Value
Methods
WithInline(bool)
When set alongside another field with Inline set, displays the fields side by side when supported.
public EmbedFieldProperties WithInline(bool inline = true)
Parameters
inlinebool
Returns
WithName(string?)
Equivalent to Title but localised to a field, limited to 256 characters.
public EmbedFieldProperties WithName(string? name)
Parameters
namestring
Returns
WithValue(string?)
Equivalent to Description but localised to a field, limited to 1024 characters.
public EmbedFieldProperties WithValue(string? value)
Parameters
valuestring