Table of Contents

Class ComponentSectionProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ComponentSectionProperties : IComponentProperties, IJsonSerializable, IEnumerable<TextDisplayProperties>, IEnumerable
Inheritance
ComponentSectionProperties
Implements
Inherited Members

Constructors

ComponentSectionProperties(IComponentSectionAccessoryProperties)

public ComponentSectionProperties(IComponentSectionAccessoryProperties accessory)

Parameters

accessory IComponentSectionAccessoryProperties

ComponentSectionProperties(IComponentSectionAccessoryProperties, IEnumerable<TextDisplayProperties>)

public ComponentSectionProperties(IComponentSectionAccessoryProperties accessory, IEnumerable<TextDisplayProperties> components)

Parameters

accessory IComponentSectionAccessoryProperties
components IEnumerable<TextDisplayProperties>

Properties

Accessory

public IComponentSectionAccessoryProperties Accessory { get; set; }

Property Value

IComponentSectionAccessoryProperties

ComponentType

Type of the component.

public ComponentType ComponentType { get; }

Property Value

ComponentType

Components

public IEnumerable<TextDisplayProperties> Components { get; set; }

Property Value

IEnumerable<TextDisplayProperties>

Id

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

public int? Id { get; set; }

Property Value

int?

Methods

AddComponents(params IEnumerable<TextDisplayProperties>)

public ComponentSectionProperties AddComponents(params IEnumerable<TextDisplayProperties> components)

Parameters

components IEnumerable<TextDisplayProperties>

Returns

ComponentSectionProperties

WithAccessory(IComponentSectionAccessoryProperties)

public ComponentSectionProperties WithAccessory(IComponentSectionAccessoryProperties accessory)

Parameters

accessory IComponentSectionAccessoryProperties

Returns

ComponentSectionProperties

WithComponents(IEnumerable<TextDisplayProperties>)

public ComponentSectionProperties WithComponents(IEnumerable<TextDisplayProperties> components)

Parameters

components IEnumerable<TextDisplayProperties>

Returns

ComponentSectionProperties

WithId(int?)

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

public ComponentSectionProperties WithId(int? id)

Parameters

id int?

Returns

ComponentSectionProperties

WriteTo(Utf8JsonWriter)

public void WriteTo(Utf8JsonWriter writer)

Parameters

writer Utf8JsonWriter