Table of Contents

Class TextDisplayProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class TextDisplayProperties : IComponentProperties
Inheritance
TextDisplayProperties
Implements
Inherited Members

Constructors

TextDisplayProperties(string)

public TextDisplayProperties(string content)

Parameters

content string

Properties

ComponentType

Type of the component.

[JsonPropertyName("type")]
public ComponentType ComponentType { get; }

Property Value

ComponentType

Content

[JsonPropertyName("content")]
public string Content { get; set; }

Property Value

string

Id

Unique identifier for the component. Auto populated through increment if not provided.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("id")]
public int? Id { get; set; }

Property Value

int?

Methods

WithContent(string)

public TextDisplayProperties WithContent(string content)

Parameters

content string

Returns

TextDisplayProperties

WithId(int?)

Unique identifier for the component. Auto populated through increment if not provided.

public TextDisplayProperties WithId(int? id)

Parameters

id int?

Returns

TextDisplayProperties