Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Peaky.Slack.BlockKit/Elements/ButtonElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ButtonElement : IBlockElement
/// <summary>
/// The type of element. In this case type is always button.
/// </summary>
[JsonProperty("button")]
[JsonProperty("type")]
public string Type => "button";

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Peaky.Slack.BlockKit/Layout/SectionBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public class SectionBlock : ILayoutBlock
/// </summary>
[JsonProperty("type")]
public string Type => "section";

/// <summary>
/// The text for the block, in the form of a text object.
/// Maximum length for the text in this field is 3000 characters.
/// </summary>
[JsonProperty("text")]
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public TextComposition Text;

/// <summary>
Expand Down