From e6686a61105b88b734bcc9415ad453e1bf224a02 Mon Sep 17 00:00:00 2001 From: Benn Lazell Date: Thu, 30 Apr 2020 12:13:45 +0100 Subject: [PATCH] Add Blocks to Attachments #83 --- src/Slack.Webhooks/SlackAttachment.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Slack.Webhooks/SlackAttachment.cs b/src/Slack.Webhooks/SlackAttachment.cs index 591c60e..f91467e 100644 --- a/src/Slack.Webhooks/SlackAttachment.cs +++ b/src/Slack.Webhooks/SlackAttachment.cs @@ -116,5 +116,22 @@ public List MrkdwnIn /// The actions you provide will be rendered as message buttons or menus to users. /// public List Actions { get; set; } + + /// + /// Optional collection of + /// + /// + /// + /// + /// + /// + /// + /// + public List Blocks { get; set; } + + public bool ShouldSerializeTimestamp() + { + return Timestamp != 0; + } } }