Add constructor for ActionRowBuilder with id (#3236)
This commit is contained in:
@@ -64,6 +64,16 @@ public class ActionRowBuilder : IMessageComponentBuilder, IInteractableComponent
|
||||
Components = components?.ToList() ?? [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new <see cref="ActionRowBuilder"/>.
|
||||
/// </summary>
|
||||
public ActionRowBuilder(IEnumerable<IMessageComponentBuilder> components, int? id)
|
||||
{
|
||||
Components = components?.ToList() ?? [];
|
||||
Id = id;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new <see cref="ActionRowBuilder"/> from existing component.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user