Table of Contents

Class ActionRowProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ActionRowProperties : ComponentProperties, 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.

public override ComponentType ComponentType { get; }

Property Value

ComponentType

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