Skip to content

Commit

Permalink
Correct empty value exception (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi authored Feb 9, 2025
1 parent c625f5f commit 6e7b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.Core/Entities/Messages/EmbedBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public object Value
{
var stringValue = value?.ToString();
if (string.IsNullOrWhiteSpace(stringValue))
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));
if (stringValue.Length > MaxFieldValueLength)
throw new ArgumentException(message: $"Field value length must be less than or equal to {MaxFieldValueLength}.", paramName: nameof(Value));
_value = stringValue;
Expand Down

0 comments on commit 6e7b3c2

Please sign in to comment.