Skip to content

Commit 16ea091

Browse files
authored
Add overloaded constructor with id to MediaGalleryBuilder (#3238)
Added an overloaded constructor to MediaGalleryBuilder that accepts an ID.
1 parent 0dea5bb commit 16ea091

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ public MediaGalleryBuilder(params IEnumerable<MediaGalleryItemProperties> items)
3232
{
3333
Items = items?.ToList();
3434
}
35+
36+
/// <summary>
37+
/// Initializes a new instance of the <see cref="MediaGalleryBuilder"/>.
38+
/// </summary>
39+
public MediaGalleryBuilder(IEnumerable<MediaGalleryItemProperties> items, int? id) : this(items)
40+
{
41+
Id = id;
42+
}
3543

3644
/// <summary>
3745
/// Initializes a new <see cref="MediaGalleryBuilder"/> from existing component.

0 commit comments

Comments
 (0)