Add constructor for SectionBuilder with id (#3235)

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

View File

@@ -59,6 +59,16 @@ public class SectionBuilder : IMessageComponentBuilder, IStaticComponentContaine
Components = components?.ToList();
}
/// <summary>
/// Initializes a new <see cref="SectionBuilder"/>.
/// </summary>
public SectionBuilder(IMessageComponentBuilder accessory, IEnumerable<IMessageComponentBuilder> components, int? id)
{
Accessory = accessory;
Components = components?.ToList();
Id = id;
}
/// <summary>
/// Initializes a new <see cref="SectionBuilder"/> from existing component.
/// </summary>