Packages

trait SlackMessageTemplate extends SlackBlocksTemplateDsl with SlackTextFormatters

A template to render Slack messages with blocks

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SlackMessageTemplate
  2. SlackTextFormatters
  3. SlackBlocksTemplateDsl
  4. SlackBlocksTemplateDslInternals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait SlackDslItemDef[+T] extends AnyRef
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  2. case class SlackDslSomeItem[+T](item: () => T) extends SlackDslItemDef[T] with Product with Serializable
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  3. case class SlackDslSomeIterableOfItem[+T](item: () => Iterable[T]) extends SlackDslItemDef[T] with Product with Serializable
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  4. implicit final class SlackTextInterpolators extends AnyRef
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals

Abstract Value Members

  1. abstract def renderPlainText(): String

Concrete Value Members

  1. case object SlackDslNoneItem extends SlackDslItemDef[Nothing] with Product with Serializable
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##: Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def actionsBlock: SlackActionsBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def blockElements[T <: SlackBlockElement](defs: SlackDslItemDef[T]*): NonEmptyList[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  8. def blocks(blockDefs: SlackDslItemDef[SlackBlock]*): List[SlackBlock]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  9. def blocksOrEmpty(blockDefs: SlackDslItemDef[SlackBlock]*): Option[List[SlackBlock]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  10. def button: SlackBlockButtonElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  11. def channelsSelect: SlackBlockChannelsListSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  12. def checkboxes: SlackBlockCheckboxesElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  13. def choiceGroup: SlackBlockOptionGroup
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  14. def choiceGroups[T <: SlackBlockText](defs: SlackDslItemDef[SlackBlockOptionGroup[T]]*): NonEmptyList[SlackBlockOptionGroup[T]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  15. def choiceItem: SlackBlockChoiceItem
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  16. def choiceItems[T <: SlackBlockText](defs: SlackDslItemDef[SlackBlockChoiceItem[T]]*): NonEmptyList[SlackBlockChoiceItem[T]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  17. def choiceStrItems(defs: String*): NonEmptyList[String]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  19. def confirm: SlackBlockConfirmItem
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  20. def contextBlock: SlackContextBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  21. def conversationsSelect: SlackBlockConversationListSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  22. def datePicker: SlackBlockDatePickerElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  23. def dividerBlock: SlackDividerBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  26. def externalSelect: SlackBlockExternalSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  27. def fileBlock: SlackFileBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  28. def formatDate(timestamp: Instant, token_string: String = SlackTextFormatters.SlackDateTimeFormats.Default, link: Option[String] = None): String

    Format Slack Date/Time https://api.slack.com/reference/surfaces/formatting#date-formatting

    Format Slack Date/Time https://api.slack.com/reference/surfaces/formatting#date-formatting

    timestamp

    date time to format

    token_string

    provide a formatting for your timestamp, using plain text along with special Slack tokens

    link

    an optional link on date/time

    returns

    formatted Slack Date/Time

    Attributes
    protected
    Definition Classes
    SlackTextFormatters
  29. def formatSlackChannelId(channelId: SlackChannelId): String

    Format Slack Channel Id

    Format Slack Channel Id

    channelId

    channel id

    returns

    formatted channel id

    Attributes
    protected
    Definition Classes
    SlackTextFormatters
  30. def formatSlackChannelIds(ids: Iterable[SlackChannelId]): String

    Format multiple Slack Channel Ids

    Format multiple Slack Channel Ids

    ids

    channel ids

    returns

    formatted channel ids

    Attributes
    protected
    Definition Classes
    SlackTextFormatters
  31. def formatSlackQuoteText(srcText: String): String

    Format multi-line quoted text

    Format multi-line quoted text

    srcText

    source text to quote

    returns

    quoted text

    Attributes
    protected
    Definition Classes
    SlackTextFormatters
  32. def formatSlackUserId(userId: SlackUserId): String

    Format Slack User Id

    Format Slack User Id

    userId

    user id

    returns

    formatted user id

    Attributes
    protected
    Definition Classes
    SlackTextFormatters
  33. def formatUrl(url: String, text: String): String

    Format a Slack URL on some text

    Format a Slack URL on some text

    url

    URL

    text

    text

    returns

    formatted url

    Attributes
    protected
    Definition Classes
    SlackTextFormatters
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def headerBlock: SlackHeaderBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  37. def image: SlackBlockImageElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  38. def imageBlock: SlackImageBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  39. def inputBlock: SlackInputBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def multiChannelsSelect: SlackBlockMultiChannelsListSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  42. def multiConversationsSelect: SlackBlockMultiConversationListSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  43. def multiExternalSelect: SlackBlockMultiExternalSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  44. def multiStaticSelect: SlackBlockMultiStaticSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  45. def multiUsersSelect: SlackBlockMultiUsersListSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  46. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  47. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  48. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  49. def optBlocks(condition: => Boolean)(blockDefs: SlackDslItemDef[SlackBlock]*): List[SlackBlock]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  50. def optionally[T](condition: => Boolean)(createItem: => T): SlackDslItemDef[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  51. def overflow: SlackBlockOverflowElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  52. def radioButtons: SlackBlockRadioButtonsElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  53. def renderBlocks(): Option[List[SlackBlock]]
  54. def richBlock: SlackRichTextBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  55. def sectionBlock: SlackSectionBlock
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  56. def sectionFields(defs: SlackDslItemDef[SlackBlockText]*): Option[List[SlackBlockText]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  57. implicit def slackBlockConfirmItemToOption(el: SlackBlockConfirmItem): Option[SlackBlockConfirmItem]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  58. implicit final def slackBlockElToDef[T <: SlackBlockElement](blockEl: => T): SlackDslSomeItem[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  59. implicit def slackBlockElementToOption[T <: SlackBlockElement](el: T): Option[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  60. implicit final def slackBlockIterableToDef(block: => Iterable[SlackBlock]): SlackDslSomeIterableOfItem[SlackBlock]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  61. implicit def slackBlockNonEmptyListToOption[T](els: NonEmptyList[T]): Option[NonEmptyList[T]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  62. implicit final def slackBlockOptionItemToDef[T <: SlackBlockText](item: => SlackBlockChoiceItem[T]): SlackDslSomeItem[SlackBlockChoiceItem[T]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  63. implicit final def slackBlockTextToDef[T <: SlackBlockText](blockEl: => T): SlackDslSomeItem[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  64. implicit final def slackBlockToDef(block: => SlackBlock): SlackDslSomeItem[SlackBlock]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  65. implicit def slackBlocksListToOption(blocks: List[SlackBlock]): Option[List[SlackBlock]]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  66. implicit def slackDslItemDefToIterable[T](itemDef: SlackDslItemDef[T]): Iterable[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  67. implicit final def slackDslListInnerItemsToListItems[T](items: Iterable[T]): SlackDslItemDef[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  68. implicit final def slackDslListInnerItemsToListItems[T](items: => Iterable[Iterable[T]]): SlackDslItemDef[T]
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDslInternals
  69. def staticSelect: SlackBlockStaticSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  70. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  71. def toString(): String
    Definition Classes
    AnyRef → Any
  72. def usersSelect: SlackBlockUsersListSelectElement
    Attributes
    protected
    Definition Classes
    SlackBlocksTemplateDsl
  73. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  74. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  75. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from SlackTextFormatters

Inherited from SlackBlocksTemplateDsl

Inherited from AnyRef

Inherited from Any

Ungrouped