Bases: object
Slack formats a number of things in a special way. This class provides
methods to format those things.
-
bold(text: str)[source]
Format text into a Slack bold text block.
-
code(text: str)[source]
Format text into a Slack code block.
-
datetime(timestamp: Optional[datetime] = None, date_format: str = '{date_num} {time}', url: Optional[str] = None)[source]
Format a datetime object into a Slack date string.
-
emoji(emoji: str)[source]
Format an emoji into a Slack emoji.
-
inline_code(text: str)[source]
Format text into a Slack inline code block.
-
italic(text: str)[source]
Format text into a Slack italic text block.
-
link(url: str, text: Optional[str] = None)[source]
Format a URL into a Slack link.
-
quote(text: str)[source]
Format text into a Slack quote.
-
strike(text: str)[source]
Format text into a Slack strike text block.