Table of Contents

Class ComponentSectionProperties

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

Constructors

ComponentSectionProperties(IComponentSectionAccessoryComponentProperties)

public ComponentSectionProperties(IComponentSectionAccessoryComponentProperties accessory)

Parameters

accessory IComponentSectionAccessoryComponentProperties

ComponentSectionProperties(IComponentSectionAccessoryComponentProperties, IEnumerable<IComponentSectionComponentProperties>)

public ComponentSectionProperties(IComponentSectionAccessoryComponentProperties accessory, IEnumerable<IComponentSectionComponentProperties> components)

Parameters

accessory IComponentSectionAccessoryComponentProperties
components IEnumerable<IComponentSectionComponentProperties>

Properties

Accessory

public IComponentSectionAccessoryComponentProperties Accessory { get; set; }

Property Value

IComponentSectionAccessoryComponentProperties

ComponentType

Type of the component.

public ComponentType ComponentType { get; }

Property Value

ComponentType

Components

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

Property Value

IEnumerable<IComponentSectionComponentProperties>

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<IComponentSectionComponentProperties>)

public ComponentSectionProperties AddComponents(params IEnumerable<IComponentSectionComponentProperties> components)

Parameters

components IEnumerable<IComponentSectionComponentProperties>

Returns

ComponentSectionProperties

WithAccessory(IComponentSectionAccessoryComponentProperties)

public ComponentSectionProperties WithAccessory(IComponentSectionAccessoryComponentProperties accessory)

Parameters

accessory IComponentSectionAccessoryComponentProperties

Returns

ComponentSectionProperties

WithComponents(IEnumerable<IComponentSectionComponentProperties>)

public ComponentSectionProperties WithComponents(IEnumerable<IComponentSectionComponentProperties> components)

Parameters

components IEnumerable<IComponentSectionComponentProperties>

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