|
|
@@ -43,6 +43,14 @@ namespace Discord.WebSocket |
|
|
|
public virtual bool IsPinned => false; |
|
|
|
/// <inheritdoc /> |
|
|
|
public virtual DateTimeOffset? EditedTimestamp => null; |
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
public MessageActivity Activity { get; private set; } |
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
public MessageApplication Application { get; private set; } |
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Returns all attachments included in this message. |
|
|
|
/// </summary> |
|
|
@@ -105,6 +113,29 @@ namespace Discord.WebSocket |
|
|
|
|
|
|
|
if (model.Content.IsSpecified) |
|
|
|
Content = model.Content.Value; |
|
|
|
|
|
|
|
if (model.Application.IsSpecified) |
|
|
|
{ |
|
|
|
// create a new Application from the API model |
|
|
|
Application = new MessageApplication() |
|
|
|
{ |
|
|
|
Id = model.Application.Value.Id, |
|
|
|
CoverImage = model.Application.Value.CoverImage, |
|
|
|
Description = model.Application.Value.Description, |
|
|
|
Icon = model.Application.Value.Icon, |
|
|
|
Name = model.Application.Value.Name |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
if (model.Activity.IsSpecified) |
|
|
|
{ |
|
|
|
// create a new Activity from the API model |
|
|
|
Activity = new MessageActivity() |
|
|
|
{ |
|
|
|
Type = model.Activity.Value.Type.Value, |
|
|
|
PartyId = model.Activity.Value.PartyId.Value |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|