org.latestbit.slack.morphism.client.templating
SlackTextFormatters
Companion object SlackTextFormatters
trait SlackTextFormatters extends AnyRef
Slack mark down/field formatters
- Alphabetic
- By Inheritance
- SlackTextFormatters
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- def formatSlackChannelId(channelId: SlackChannelId): String
Format Slack Channel Id
Format Slack Channel Id
- channelId
channel id
- returns
formatted channel id
- Attributes
- protected
- 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
- 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
- def formatSlackUserId(userId: SlackUserId): String
Format Slack User Id
Format Slack User Id
- userId
user id
- returns
formatted user id
- Attributes
- protected
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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