Add overloaded constructor to ContainerBuilder (#3237)
This commit is contained in:
@@ -62,6 +62,17 @@ public class ContainerBuilder : IMessageComponentBuilder, IStaticComponentContai
|
|||||||
{
|
{
|
||||||
Components = components?.ToList();
|
Components = components?.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new <see cref="ContainerBuilder"/>.
|
||||||
|
/// </summary>
|
||||||
|
public ContainerBuilder(Color? accentColor = null, bool? isSpoiler = null, int? id = null, params IEnumerable<IMessageComponentBuilder> components)
|
||||||
|
{
|
||||||
|
Components = components?.ToList();
|
||||||
|
AccentColor = accentColor;
|
||||||
|
IsSpoiler = IsSpoiler;
|
||||||
|
Id = id;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new <see cref="ContainerBuilder"/> from existing component.
|
/// Initializes a new <see cref="ContainerBuilder"/> from existing component.
|
||||||
|
|||||||
Reference in New Issue
Block a user