Class ActionRowBuilder
Represents a class used to build Action rows.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class ActionRowBuilder
Properties​
Components​
Gets or sets the components inside this row.
View Source​
Declaration
public List<IMessageComponent> Components { get; set; }
Fields​
MaxChildCount​
The max amount of child components this row can hold.
View Source​
Declaration
public const int MaxChildCount = 5
Methods​
WithComponents(List<IMessageComponent>)​
Adds a list of components to the current row.
View Source​
Declaration
public ActionRowBuilder WithComponents(List<IMessageComponent> components)
Returns​
Discord.ActionRowBuilder: The current builder.
Parameters​
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<Discord.IMessageComponent> | components | The list of components to add. |
AddComponent(IMessageComponent)​
Adds a component at the end of the current row.
View Source​
Declaration
public ActionRowBuilder AddComponent(IMessageComponent component)
Returns​
Discord.ActionRowBuilder: The current builder.
Parameters​
Type | Name | Description |
---|---|---|
Discord.IMessageComponent | component | The component to add. |
Build()​
Builds the current builder to a Discord.ActionRowComponent that can be used within a Discord.ComponentBuilder
View Source​
Declaration
public ActionRowComponent Build()
Returns​
Discord.ActionRowComponent: A Discord.ActionRowComponent that can be used within a Discord.ComponentBuilder