public static EmbedFieldJsonModel ToModel(this LocalEmbedField field)
 => field == null ? null : new EmbedFieldJsonModel
 {
     Name   = field.Name,
     Value  = field.Value,
     Inline = field.IsInline
 };
Example #2
0
 public static LocalEmbed AddInlineField(this LocalEmbed e, LocalEmbedField ef)
 => e.AddField(ef);
 public JsonEmbedField(LocalEmbedField field)
 {
     Name     = field.Name;
     Value    = field.Value;
     IsInline = field.IsInline;
 }