Table of Contents

Class ComponentSectionProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ComponentSectionProperties : IComponentProperties, 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 TextDisplayProperties[])

public ComponentSectionProperties AddComponents(params TextDisplayProperties[] components)

Parameters

components TextDisplayProperties[]

Returns

ComponentSectionProperties

AddComponents(IEnumerable<TextDisplayProperties>)

public ComponentSectionProperties AddComponents(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?)

public ComponentSectionProperties WithId(int? id)

Parameters

id int?

Returns

ComponentSectionProperties