Table of Contents

Class EmbedFieldProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
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

bool

Name

Name of the field.

[JsonConverter(typeof(EmbedFieldProperties.EmptyWhenNullStringConverter))]
[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Value

Value of the field.

[JsonConverter(typeof(EmbedFieldProperties.EmptyWhenNullStringConverter))]
[JsonPropertyName("value")]
public string? Value { get; set; }

Property Value

string

Methods

WithInline(bool)

Whether or not the field should display inline.

public EmbedFieldProperties WithInline(bool inline = true)

Parameters

inline bool

Returns

EmbedFieldProperties

WithName(string?)

Name of the field.

public EmbedFieldProperties WithName(string? name)

Parameters

name string

Returns

EmbedFieldProperties

WithValue(string?)

Value of the field.

public EmbedFieldProperties WithValue(string? value)

Parameters

value string

Returns

EmbedFieldProperties