Beispiel #1
0
 public Embed Build()
 {
     _model.Author    = Author?.ToModel();
     _model.Footer    = Footer?.ToModel();
     _model.Timestamp = Timestamp?.ToUniversalTime();
     _model.Thumbnail = Thumbnail?.ToModel();
     _model.Image     = Image?.ToModel();
     _model.Fields    = _fields.ToArray();
     return(_model);
 }
Beispiel #2
0
 internal static EmbedAuthor Create(Model model)
 {
     return(new EmbedAuthor(model.Name, model.Url, model.IconUrl, model.ProxyIconUrl));
 }
Beispiel #3
0
 public EmbedAuthorBuilder()
 {
     _model = new Author();
 }
Beispiel #4
0
 internal EmbedAuthor(Model model)
     : this(model.Name, model.Url, model.IconUrl, model.ProxyIconUrl)
 {
 }