slack-api-0.12: Bindings to the Slack RTM API.

Safe HaskellNone
LanguageHaskell2010

Web.Slack.Types.Message

Documentation

data PingPayload Source #

Constructors

PingPayload 

Fields

Instances

data Attachment Source #

Constructors

Attachment 

Fields

Instances

ToJSON Attachment Source # 

Methods

toJSON :: Attachment -> Value

toEncoding :: Attachment -> Encoding

toJSONList :: [Attachment] -> Value

toEncodingList :: [Attachment] -> Encoding

data Field Source #

Constructors

Field 

Fields

  • fieldTitle :: Maybe Text

    Shown as a bold heading above the value text. It cannot contain markup and will be escaped for you.

  • fieldValue :: Text

    The text value of the field. It may contain standard message markup and must be escaped as normal. May be multi-line.

  • fieldShort :: Bool

    Whether the value is short enough to be displayed side-by-side with other values.

Instances

ToJSON Field Source # 

Methods

toJSON :: Field -> Value

toEncoding :: Field -> Encoding

toJSONList :: [Field] -> Value

toEncodingList :: [Field] -> Encoding

data AttachmentColor Source #

Instances

Generic AttachmentColor Source # 
ToJSON AttachmentColor Source # 

Methods

toJSON :: AttachmentColor -> Value

toEncoding :: AttachmentColor -> Encoding

toJSONList :: [AttachmentColor] -> Value

toEncodingList :: [AttachmentColor] -> Encoding

type Rep AttachmentColor Source # 
type Rep AttachmentColor = D1 (MetaData "AttachmentColor" "Web.Slack.Types.Message" "slack-api-0.12-5bXjjbyGgxpG4YrpslwyQ6" False) ((:+:) ((:+:) (C1 (MetaCons "DefaultColor" PrefixI False) U1) (C1 (MetaCons "GoodColor" PrefixI False) U1)) ((:+:) (C1 (MetaCons "WarningColor" PrefixI False) U1) ((:+:) (C1 (MetaCons "DangerColor" PrefixI False) U1) (C1 (MetaCons "CustomColor" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))))))