Safe Haskell | None |
---|---|
Language | Haskell2010 |
Web.Slack.Common
Description
- data Color
- data UserId
- data SlackTimestamp = SlackTimestamp {}
- mkSlackTimestamp :: UTCTime -> SlackTimestamp
- data HistoryReq = HistoryReq {}
- mkHistoryReq :: Text -> HistoryReq
- data HistoryRsp = HistoryRsp {}
- data Message = Message {}
- data MessageType = MessageTypeMessage
- data SlackClientError
- newtype SlackMessageText = SlackMessageText {}
Documentation
data SlackTimestamp Source #
Constructors
SlackTimestamp | |
Fields |
mkHistoryReq :: Text -> HistoryReq Source #
Constructors
Message | |
Fields
|
data SlackClientError Source #
Errors that can be triggered by a slack request.
Constructors
ServantError ServantError | errors from the network connection |
SlackError Text | errors returned by the slack API |
Instances
newtype SlackMessageText Source #
Message text in the format returned by Slack,
see https://api.slack.com/docs/message-formatting
Consider using messageToHtml
for displaying.
Constructors
SlackMessageText | |
Fields |