Fix NRE responding with a modal info class with null required fields (#3114)
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Discord.Interactions
|
||||
{
|
||||
var boxedValue = textComponent.Getter(modal);
|
||||
var value = textComponent.TypeOverridesToString
|
||||
? boxedValue.ToString()
|
||||
? boxedValue?.ToString()
|
||||
: boxedValue as string;
|
||||
|
||||
builder.AddTextInput(textComponent.Label, textComponent.CustomId, textComponent.Style, textComponent.Placeholder, textComponent.IsRequired ? textComponent.MinLength : null,
|
||||
|
||||
Reference in New Issue
Block a user