trait SlackMessageTemplate extends SlackBlocksTemplateDsl with SlackTextFormatters
A template to render Slack messages with blocks
- Alphabetic
- By Inheritance
- SlackMessageTemplate
- SlackTextFormatters
- SlackBlocksTemplateDsl
- SlackBlocksTemplateDslInternals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait SlackDslItemDef[+T] extends AnyRef
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- case class SlackDslSomeItem[+T](item: () => T) extends SlackDslItemDef[T] with Product with Serializable
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- case class SlackDslSomeIterableOfItem[+T](item: () => Iterable[T]) extends SlackDslItemDef[T] with Product with Serializable
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final class SlackTextInterpolators extends AnyRef
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
Abstract Value Members
- abstract def renderPlainText(): String
Concrete Value Members
- case object SlackDslNoneItem extends SlackDslItemDef[Nothing] with Product with Serializable
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def actionsBlock: SlackActionsBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blockElements[T <: SlackBlockElement](defs: SlackDslItemDef[T]*): NonEmptyList[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def blocks(blockDefs: SlackDslItemDef[SlackBlock]*): List[SlackBlock]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def blocksOrEmpty(blockDefs: SlackDslItemDef[SlackBlock]*): Option[List[SlackBlock]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def button: SlackBlockButtonElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def channelsSelect: SlackBlockChannelsListSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def checkboxes: SlackBlockCheckboxesElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def choiceGroup: SlackBlockOptionGroup
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def choiceGroups[T <: SlackBlockText](defs: SlackDslItemDef[SlackBlockOptionGroup[T]]*): NonEmptyList[SlackBlockOptionGroup[T]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def choiceItem: SlackBlockChoiceItem
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def choiceItems[T <: SlackBlockText](defs: SlackDslItemDef[SlackBlockChoiceItem[T]]*): NonEmptyList[SlackBlockChoiceItem[T]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def choiceStrItems(defs: String*): NonEmptyList[String]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def confirm: SlackBlockConfirmItem
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def contextBlock: SlackContextBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def conversationsSelect: SlackBlockConversationListSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def datePicker: SlackBlockDatePickerElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def dividerBlock: SlackDividerBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def externalSelect: SlackBlockExternalSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def fileBlock: SlackFileBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- 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
- 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
- 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
- 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
- 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
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def headerBlock: SlackHeaderBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def image: SlackBlockImageElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def imageBlock: SlackImageBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def inputBlock: SlackInputBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def multiChannelsSelect: SlackBlockMultiChannelsListSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def multiConversationsSelect: SlackBlockMultiConversationListSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def multiExternalSelect: SlackBlockMultiExternalSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def multiStaticSelect: SlackBlockMultiStaticSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def multiUsersSelect: SlackBlockMultiUsersListSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def optBlocks(condition: => Boolean)(blockDefs: SlackDslItemDef[SlackBlock]*): List[SlackBlock]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def optionally[T](condition: => Boolean)(createItem: => T): SlackDslItemDef[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def overflow: SlackBlockOverflowElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def radioButtons: SlackBlockRadioButtonsElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def renderBlocks(): Option[List[SlackBlock]]
- def richBlock: SlackRichTextBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def sectionBlock: SlackSectionBlock
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- def sectionFields(defs: SlackDslItemDef[SlackBlockText]*): Option[List[SlackBlockText]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- implicit def slackBlockConfirmItemToOption(el: SlackBlockConfirmItem): Option[SlackBlockConfirmItem]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackBlockElToDef[T <: SlackBlockElement](blockEl: => T): SlackDslSomeItem[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit def slackBlockElementToOption[T <: SlackBlockElement](el: T): Option[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackBlockIterableToDef(block: => Iterable[SlackBlock]): SlackDslSomeIterableOfItem[SlackBlock]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit def slackBlockNonEmptyListToOption[T](els: NonEmptyList[T]): Option[NonEmptyList[T]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackBlockOptionItemToDef[T <: SlackBlockText](item: => SlackBlockChoiceItem[T]): SlackDslSomeItem[SlackBlockChoiceItem[T]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackBlockTextToDef[T <: SlackBlockText](blockEl: => T): SlackDslSomeItem[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackBlockToDef(block: => SlackBlock): SlackDslSomeItem[SlackBlock]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit def slackBlocksListToOption(blocks: List[SlackBlock]): Option[List[SlackBlock]]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit def slackDslItemDefToIterable[T](itemDef: SlackDslItemDef[T]): Iterable[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackDslListInnerItemsToListItems[T](items: Iterable[T]): SlackDslItemDef[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- implicit final def slackDslListInnerItemsToListItems[T](items: => Iterable[Iterable[T]]): SlackDslItemDef[T]
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDslInternals
- def staticSelect: SlackBlockStaticSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def usersSelect: SlackBlockUsersListSelectElement
- Attributes
- protected
- Definition Classes
- SlackBlocksTemplateDsl
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated