Beispiel #1
0
 internal Embed(EmbedType type,
                string title,
                string description,
                string url,
                DateTimeOffset?timestamp,
                Color?color,
                EmbedImage?image,
                EmbedVideo?video,
                EmbedAuthor?author,
                EmbedFooter?footer,
                EmbedProvider?provider,
                EmbedThumbnail?thumbnail,
                ImmutableArray <EmbedField> fields)
 {
     Type        = type;
     Title       = title;
     Description = description;
     Url         = url;
     Color       = color;
     Timestamp   = timestamp;
     Image       = image;
     Video       = video;
     Author      = author;
     Footer      = footer;
     Provider    = provider;
     Thumbnail   = thumbnail;
     Fields      = fields;
 }
Beispiel #2
0
 public Embed(string?title, string?url, DateTimeOffset?timestamp, Color?color, EmbedAuthor?author, string?description,
              IReadOnlyList <EmbedField> fields, EmbedImage?thumbnail, EmbedImage?image, EmbedFooter?footer)
 {
     Title       = title;
     Url         = url;
     Timestamp   = timestamp;
     Color       = color;
     Author      = author;
     Description = description;
     Fields      = fields;
     Thumbnail   = thumbnail;
     Image       = image;
     Footer      = footer;
 }
Beispiel #3
0
 public Embed(string?title, string?type, string?description, string?url, DateTime?timestamp, int?color,
              EmbedFooter?footer, EmbedImage?image, EmbedImage?thumbnail, EmbedVideo?video, EmbedProvider?provider,
              EmbedAuthor?author, EmbedField[] fields)
 {
     Title       = title;
     Type        = type;
     Description = description;
     Url         = url;
     Timestamp   = timestamp;
     Color       = color;
     Footer      = footer;
     Image       = image;
     Thumbnail   = thumbnail;
     Video       = video;
     Provider    = provider;
     Author      = author;
     Fields      = fields;
 }
Beispiel #4
0
 internal Embed(string type,
                string title,
                string description,
                string url,
                Color?color,
                EmbedAuthor?author,
                EmbedFooter?footer,
                EmbedProvider?provider,
                EmbedThumbnail?thumbnail,
                ImmutableArray <EmbedField> fields)
 {
     Type        = type;
     Title       = title;
     Description = description;
     Url         = url;
     Color       = color;
     Author      = author;
     Footer      = footer;
     Provider    = provider;
     Thumbnail   = thumbnail;
     Fields      = fields;
 }
 public MessageEmbed SetAuthor(EmbedAuthor?author = null)
 {
     Author = author;
     return(this);
 }