We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c625f5f commit 6e7b3c2Copy full SHA for 6e7b3c2
src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs
@@ -545,7 +545,7 @@ public object Value
545
{
546
var stringValue = value?.ToString();
547
if (string.IsNullOrWhiteSpace(stringValue))
548
- throw new ArgumentException(message: "Field value must not be null or empty.", paramName: nameof(Value));
+ throw new ArgumentException(message: "Field value must not be null, empty or entirely whitespace.", paramName: nameof(Value));
549
if (stringValue.Length > MaxFieldValueLength)
550
throw new ArgumentException(message: $"Field value length must be less than or equal to {MaxFieldValueLength}.", paramName: nameof(Value));
551
_value = stringValue;
0 commit comments