|
@@ -66,6 +66,15 @@ namespace Discord |
|
|
_embed.Image = new EmbedImage(value, null, null, null); |
|
|
_embed.Image = new EmbedImage(value, null, null, null); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
public string VideoUrl |
|
|
|
|
|
{ |
|
|
|
|
|
get => _embed.Video?.Url; |
|
|
|
|
|
set |
|
|
|
|
|
{ |
|
|
|
|
|
if (!value.IsNullOrUri()) throw new ArgumentException("Url must be a well-formed URI", nameof(VideoUrl)); |
|
|
|
|
|
_embed.Video = new EmbedVideo(value, null, null); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
public DateTimeOffset? Timestamp { get => _embed.Timestamp; set { _embed.Timestamp = value; } } |
|
|
public DateTimeOffset? Timestamp { get => _embed.Timestamp; set { _embed.Timestamp = value; } } |
|
|
public Color? Color { get => _embed.Color; set { _embed.Color = value; } } |
|
|
public Color? Color { get => _embed.Color; set { _embed.Color = value; } } |
|
|
|
|
|
|
|
@@ -109,6 +118,11 @@ namespace Discord |
|
|
ImageUrl = imageUrl; |
|
|
ImageUrl = imageUrl; |
|
|
return this; |
|
|
return this; |
|
|
} |
|
|
} |
|
|
|
|
|
public EmbedBuilder WithVideoUrl(string videoUrl) |
|
|
|
|
|
{ |
|
|
|
|
|
VideoUrl = videoUrl; |
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
public EmbedBuilder WithCurrentTimestamp() |
|
|
public EmbedBuilder WithCurrentTimestamp() |
|
|
{ |
|
|
{ |
|
|
Timestamp = DateTimeOffset.UtcNow; |
|
|
Timestamp = DateTimeOffset.UtcNow; |
|
|