diff --git a/src/Discord.Net.Rest/Entities/Messages/EmbedBuilder.cs b/src/Discord.Net.Rest/Entities/Messages/EmbedBuilder.cs index ab1ebdf37..98a191379 100644 --- a/src/Discord.Net.Rest/Entities/Messages/EmbedBuilder.cs +++ b/src/Discord.Net.Rest/Entities/Messages/EmbedBuilder.cs @@ -24,7 +24,16 @@ namespace Discord public EmbedAuthorBuilder Author { get; set; } public EmbedFooterBuilder Footer { get; set; } - public List Fields { get; set; } + private List _fields; + public List Fields + { + get => _fields; + set + { + if (value != null) _fields = value; + else throw new ArgumentNullException("Cannot set an embed builder's fields collection to null", nameof(value)); + } + } public EmbedBuilder WithTitle(string title) {