Class InputBlock.InputBlockBuilder

  • Enclosing class:
    InputBlock

    public static class InputBlock.InputBlockBuilder
    extends Object
    • Method Detail

      • label

        public InputBlock.InputBlockBuilder label​(PlainTextObject label)
        A label that appears above an input element in the form of a text object that must have type of plain_text. Maximum length for the text in this field is 2000 characters.
        Returns:
        this.
      • dispatchAction

        public InputBlock.InputBlockBuilder dispatchAction​(Boolean dispatchAction)
        A boolean that indicates whether or not use of element in this block should dispatch a block_actions payload. Defaults to false.
        Returns:
        this.
      • hint

        public InputBlock.InputBlockBuilder hint​(PlainTextObject hint)
        An optional hint that appears below an input element in a lighter grey. It must be a text object with a type of plain_text. Maximum length for the text in this field is 2000 characters.
        Returns:
        this.
      • optional

        public InputBlock.InputBlockBuilder optional​(boolean optional)
        A boolean that indicates whether the input element may be empty when a user submits the modal. Defaults to false.
        Returns:
        this.