Add constructor for ActionRowBuilder with id (#3236)
This commit is contained in:
@@ -64,6 +64,16 @@ public class ActionRowBuilder : IMessageComponentBuilder, IInteractableComponent
|
|||||||
Components = components?.ToList() ?? [];
|
Components = components?.ToList() ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new <see cref="ActionRowBuilder"/>.
|
||||||
|
/// </summary>
|
||||||
|
public ActionRowBuilder(IEnumerable<IMessageComponentBuilder> components, int? id)
|
||||||
|
{
|
||||||
|
Components = components?.ToList() ?? [];
|
||||||
|
Id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new <see cref="ActionRowBuilder"/> from existing component.
|
/// Initializes a new <see cref="ActionRowBuilder"/> from existing component.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user