Commit 2b86a79
Fix a bug in EmbedBuilder.Length when there is an EmbedField with no Value (#2345)
* Update EmbedBuilder.cs
Fixes a bug where 'EmbedBuilder.Length' will throw an exception of type 'System.NullReferenceException' when a field doesn't have a value.
* Update EmbedBuilder.cs
Fixed an incorrect assuption that `Value` was a `string?`
* Update EmbedBuilder.cs
Fixed one more null check
* Update EmbedBuilder.cs
Co-authored-by: Quin Lynch <[email protected]>1 parent 11ece4b commit 2b86a79
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments