Skip to content

Commit 6e7b3c2

Browse files
authored
Correct empty value exception (#3064)
1 parent c625f5f commit 6e7b3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ public object Value
545545
{
546546
var stringValue = value?.ToString();
547547
if (string.IsNullOrWhiteSpace(stringValue))
548-
throw new ArgumentException(message: "Field value must not be null or empty.", paramName: nameof(Value));
548+
throw new ArgumentException(message: "Field value must not be null, empty or entirely whitespace.", paramName: nameof(Value));
549549
if (stringValue.Length > MaxFieldValueLength)
550550
throw new ArgumentException(message: $"Field value length must be less than or equal to {MaxFieldValueLength}.", paramName: nameof(Value));
551551
_value = stringValue;

0 commit comments

Comments
 (0)