Table of Contents

Class ActionRowProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class ActionRowProperties : IComponentProperties, IJsonSerializable, 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 IEnumerable<IButtonProperties>)

Buttons of the action row (max 5).

public ActionRowProperties AddButtons(params 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?)

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

public ActionRowProperties WithId(int? id)

Parameters

id int?

Returns

ActionRowProperties

WriteTo(Utf8JsonWriter)

public void WriteTo(Utf8JsonWriter writer)

Parameters

writer Utf8JsonWriter