Table of Contents

Class ActionRowProperties

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

Constructors

ActionRowProperties()

public ActionRowProperties()

ActionRowProperties(IEnumerable<IActionRowComponentProperties>)

public ActionRowProperties(IEnumerable<IActionRowComponentProperties> components)

Parameters

components IEnumerable<IActionRowComponentProperties>

Components of the action row (max 5).

Properties

ComponentType

Type of the component.

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

Property Value

ComponentType

Components

Components of the action row (max 5).

[JsonPropertyName("components")]
public IEnumerable<IActionRowComponentProperties> Components { get; set; }

Property Value

IEnumerable<IActionRowComponentProperties>

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

AddComponents(params IEnumerable<IActionRowComponentProperties>)

Components of the action row (max 5).

public ActionRowProperties AddComponents(params IEnumerable<IActionRowComponentProperties> components)

Parameters

components IEnumerable<IActionRowComponentProperties>

Returns

ActionRowProperties

WithComponents(IEnumerable<IActionRowComponentProperties>)

Components of the action row (max 5).

public ActionRowProperties WithComponents(IEnumerable<IActionRowComponentProperties> components)

Parameters

components IEnumerable<IActionRowComponentProperties>

Returns

ActionRowProperties

WithId(int?)

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

public ActionRowProperties WithId(int? id)

Parameters

id int?

Returns

ActionRowProperties