Skip to content

Commit 56d6980

Browse files
authored
Add empty constructors for containers (#3125)
* add empty ctors
1 parent 5761c48 commit 56d6980

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

src/Discord.Net.Core/Entities/Interactions/MessageComponents/Builders/ActionRowBuilder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public List<IMessageComponentBuilder> Components
3535
}
3636
}
3737

38+
/// <summary>
39+
/// Initializes a new <see cref="ActionRowBuilder"/>.
40+
/// </summary>
41+
public ActionRowBuilder() { }
42+
3843
/// <summary>
3944
/// Initializes a new <see cref="ActionRowBuilder"/>.
4045
/// </summary>

src/Discord.Net.Core/Entities/Interactions/MessageComponents/Builders/ComponentBuilderV2.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ public List<IMessageComponentBuilder> Components
2323
}
2424
}
2525

26+
/// <summary>
27+
/// Initializes a new instance of <see cref="ComponentBuilderV2"/>.
28+
/// </summary>
29+
public ComponentBuilderV2() { }
30+
2631
/// <summary>
2732
/// Initializes a new instance of <see cref="ComponentBuilderV2"/>.
2833
/// </summary>

src/Discord.Net.Core/Entities/Interactions/MessageComponents/Builders/ContainerBuilder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public List<IMessageComponentBuilder> Components
3232
/// </summary>
3333
public bool? IsSpoiler { get; set; }
3434

35+
/// <summary>
36+
/// Initializes a new <see cref="ContainerBuilder"/>.
37+
/// </summary>
38+
public ContainerBuilder() { }
39+
3540
/// <summary>
3641
/// Initializes a new <see cref="ContainerBuilder"/>.
3742
/// </summary>

src/Discord.Net.Core/Entities/Interactions/MessageComponents/Builders/SectionBuilder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public List<IMessageComponentBuilder> Components
3838
set => _components = value ?? throw new ArgumentNullException(nameof(value), $"{nameof(Components)} cannot be null.");
3939
}
4040

41+
/// <summary>
42+
/// Initializes a new <see cref="SectionBuilder"/>.
43+
/// </summary>
44+
public SectionBuilder() { }
45+
4146
/// <summary>
4247
/// Initializes a new <see cref="SectionBuilder"/>.
4348
/// </summary>

0 commit comments

Comments
 (0)