diff --git a/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs b/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs index 37522633..85f53af3 100644 --- a/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs +++ b/src/Discord.Net.Interactions/Extensions/IDiscordInteractionExtensions.cs @@ -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,