Add constructor for ActionRowBuilder with id (#3236)

This commit is contained in:
Quin Lynch
2026-02-10 21:15:19 -04:00
committed by GitHub
parent e3cb507032
commit e05e849584

View File

@@ -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>