Add empty constructors for containers (#3125)

* add empty ctors
This commit is contained in:
Mihail Gribkov
2025-05-10 00:19:09 +03:00
committed by GitHub
parent 5761c4848f
commit 56d6980aa8
4 changed files with 20 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ public class ActionRowBuilder : IMessageComponentBuilder, IInteractableComponent
} }
} }
/// <summary>
/// Initializes a new <see cref="ActionRowBuilder"/>.
/// </summary>
public ActionRowBuilder() { }
/// <summary> /// <summary>
/// Initializes a new <see cref="ActionRowBuilder"/>. /// Initializes a new <see cref="ActionRowBuilder"/>.
/// </summary> /// </summary>

View File

@@ -23,6 +23,11 @@ public class ComponentBuilderV2 : IStaticComponentContainer
} }
} }
/// <summary>
/// Initializes a new instance of <see cref="ComponentBuilderV2"/>.
/// </summary>
public ComponentBuilderV2() { }
/// <summary> /// <summary>
/// Initializes a new instance of <see cref="ComponentBuilderV2"/>. /// Initializes a new instance of <see cref="ComponentBuilderV2"/>.
/// </summary> /// </summary>

View File

@@ -32,6 +32,11 @@ public class ContainerBuilder : IMessageComponentBuilder, IStaticComponentContai
/// </summary> /// </summary>
public bool? IsSpoiler { get; set; } public bool? IsSpoiler { get; set; }
/// <summary>
/// Initializes a new <see cref="ContainerBuilder"/>.
/// </summary>
public ContainerBuilder() { }
/// <summary> /// <summary>
/// Initializes a new <see cref="ContainerBuilder"/>. /// Initializes a new <see cref="ContainerBuilder"/>.
/// </summary> /// </summary>

View File

@@ -38,6 +38,11 @@ public class SectionBuilder : IMessageComponentBuilder, IStaticComponentContaine
set => _components = value ?? throw new ArgumentNullException(nameof(value), $"{nameof(Components)} cannot be null."); set => _components = value ?? throw new ArgumentNullException(nameof(value), $"{nameof(Components)} cannot be null.");
} }
/// <summary>
/// Initializes a new <see cref="SectionBuilder"/>.
/// </summary>
public SectionBuilder() { }
/// <summary> /// <summary>
/// Initializes a new <see cref="SectionBuilder"/>. /// Initializes a new <see cref="SectionBuilder"/>.
/// </summary> /// </summary>