|
|
@@ -28,6 +28,9 @@ namespace Discord.Rest |
|
|
|
/// <inheritdoc/> |
|
|
|
public string Description { get; private set; } |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
public string CoverImageId { get; private set; } |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
public DateTimeOffset StartTime { get; private set; } |
|
|
|
|
|
|
@@ -98,8 +101,13 @@ namespace Discord.Rest |
|
|
|
EntityId = model.EntityId; |
|
|
|
Location = model.EntityMetadata?.Location.GetValueOrDefault(); |
|
|
|
UserCount = model.UserCount.ToNullable(); |
|
|
|
CoverImageId = model.Image; |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
public string GetCoverImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 1024) |
|
|
|
=> CDN.GetEventCoverImageUrl(Guild.Id, Id, CoverImageId, format, size); |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
public Task StartAsync(RequestOptions options = null) |
|
|
|
=> ModifyAsync(x => x.Status = GuildScheduledEventStatus.Active); |
|
|
|