Class ActionRowProperties
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
Components
Components of the action row (max 5).
[JsonPropertyName("components")]
public IEnumerable<IActionRowComponentProperties> Components { get; set; }
Property Value
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
WithComponents(IEnumerable<IActionRowComponentProperties>)
Components of the action row (max 5).
public ActionRowProperties WithComponents(IEnumerable<IActionRowComponentProperties> components)
Parameters
components
IEnumerable<IActionRowComponentProperties>
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public ActionRowProperties WithId(int? id)
Parameters
id
int?