Add constructor for SectionBuilder with id (#3235)
This commit is contained in:
@@ -59,6 +59,16 @@ public class SectionBuilder : IMessageComponentBuilder, IStaticComponentContaine
|
|||||||
Components = components?.ToList();
|
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>
|
/// <summary>
|
||||||
/// Initializes a new <see cref="SectionBuilder"/> from existing component.
|
/// Initializes a new <see cref="SectionBuilder"/> from existing component.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user