diff --git a/Slack/Slack.BlockKit/Classes/Layout/Input.cs b/Slack/Slack.BlockKit/Classes/Layout/Input.cs index e7ddb4f..80269aa 100644 --- a/Slack/Slack.BlockKit/Classes/Layout/Input.cs +++ b/Slack/Slack.BlockKit/Classes/Layout/Input.cs @@ -10,6 +10,8 @@ public class Input : Block private const int labelTextLength = 2000; private object _element; private PlainText _hint; + private string _block_id; + private const int block_idLength = 255; private const int hintTextLength = 2000; public bool optional; @@ -44,6 +46,18 @@ public object element } } } + + public string block_id + { + get => _block_id; set + { + if (value.Length > block_idLength) + { + throw new System.Exception($"block_id length must be less than {block_idLength} characters."); + } + _block_id = value; + } + } public PlainText hint { get => _hint; set