Table of Contents

Class EmbedFieldProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll

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

bool

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

string

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

string

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

inline bool

Returns

EmbedFieldProperties

WithName(string?)

Equivalent to Title but localised to a field, limited to 256 characters.

public EmbedFieldProperties WithName(string? name)

Parameters

name string

Returns

EmbedFieldProperties

WithValue(string?)

Equivalent to Description but localised to a field, limited to 1024 characters.

public EmbedFieldProperties WithValue(string? value)

Parameters

value string

Returns

EmbedFieldProperties