Add overloaded constructor to ContainerBuilder (#3237)
This commit is contained in:
@@ -63,6 +63,17 @@ public class ContainerBuilder : IMessageComponentBuilder, IStaticComponentContai
|
||||
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>
|
||||
/// Initializes a new <see cref="ContainerBuilder"/> from existing component.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user