Make ParameterChoice constructor public (#3169)

This commit is contained in:
Alex Thomson
2025-07-29 05:19:19 +12:00
committed by GitHub
parent 958d28636b
commit 9cb6ffdd17

View File

@@ -15,7 +15,12 @@ namespace Discord.Interactions
/// </summary> /// </summary>
public object Value { get; } public object Value { get; }
internal ParameterChoice(string name, object value) /// <summary>
/// Initializes a new <see cref="ParameterChoice"/>.
/// </summary>
/// <param name="name">Name of this choice.</param>
/// <param name="value">Value of this choice.</param>
public ParameterChoice(string name, object value)
{ {
Name = name; Name = name;
Value = value; Value = value;