Add overloaded constructor to ContainerBuilder (#3237)

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

View File

@@ -62,6 +62,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.