Table of Contents

Class ActionRowProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ActionRowProperties : IComponentProperties, IEnumerable<IButtonProperties>, IEnumerable
Inheritance
ActionRowProperties
Implements
Inherited Members

Constructors

ActionRowProperties()

public ActionRowProperties()

ActionRowProperties(IEnumerable<IButtonProperties>)

public ActionRowProperties(IEnumerable<IButtonProperties> buttons)

Parameters

buttons IEnumerable<IButtonProperties>

Buttons of the action row (max 5).

Properties

Buttons

Buttons of the action row (max 5).

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

Property Value

IEnumerable<IButtonProperties>

ComponentType

Type of the component.

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

Property Value

ComponentType

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

AddButtons(params IButtonProperties[])

Buttons of the action row (max 5).

public ActionRowProperties AddButtons(params IButtonProperties[] buttons)

Parameters

buttons IButtonProperties[]

Returns

ActionRowProperties

AddButtons(IEnumerable<IButtonProperties>)

Buttons of the action row (max 5).

public ActionRowProperties AddButtons(IEnumerable<IButtonProperties> buttons)

Parameters

buttons IEnumerable<IButtonProperties>

Returns

ActionRowProperties

WithButtons(IEnumerable<IButtonProperties>)

Buttons of the action row (max 5).

public ActionRowProperties WithButtons(IEnumerable<IButtonProperties> buttons)

Parameters

buttons IEnumerable<IButtonProperties>

Returns

ActionRowProperties

WithId(int?)

public ActionRowProperties WithId(int? id)

Parameters

id int?

Returns

ActionRowProperties