Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 internal static EmbedAuthor Create(Model model)
 {
     return(new EmbedAuthor(model.Name, model.Url, model.IconUrl, model.ProxyIconUrl));
 }
Ejemplo n.º 3
0
 public EmbedAuthorBuilder()
 {
     _model = new Author();
 }
Ejemplo n.º 4
0
 internal EmbedAuthor(Model model)
     : this(model.Name, model.Url, model.IconUrl, model.ProxyIconUrl)
 {
 }