danibot-0.2.0.0: Basic Slack bot framework.

Safe HaskellNone
LanguageHaskell2010

Network.Danibot.Slack.Types

Synopsis

Documentation

newtype Wire a Source

Newtype that marks the values that go "over the wire".

Constructors

Wire 

Fields

unWire :: a
 

Instances

Functor Wire Source 
Show a => Show (Wire a) Source 
ToJSON (Wire OutboundMessage) Source 
FromJSON (Wire Event) Source 
FromJSON (Wire ChannelUser) Source 
FromJSON (Wire Message) Source 
FromJSON (Wire IM) Source 
FromJSON (Wire Group) Source 
FromJSON (Wire Channel) Source 
FromJSON (Wire User) Source 
FromJSON (Wire Team) Source 
FromJSON (Wire Self) Source 
FromJSON (Wire Intro) Source 
Identified i => Identified (Wire i) Source 

data Intro Source

The initial information returned by the Slack API when the RTM is started.

Constructors

Intro 

Fields

introUrl :: Text
 
introChat :: Chat
 

Instances

data Chat Source

Constructors

Chat 

Fields

self :: !Self
 
team :: !Team
 
users :: !(Map Text User)
 
channels :: !(Map Text Channel)
 
groups :: !(Map Text Group)
 
_ims :: !(Map Text IM)
 

Instances

ims :: Lens' Chat (Map Text IM) Source

data Self Source

Constructors

Self 

Fields

selfId :: Text
 
selfName :: Text
 

data Team Source

Constructors

Team 

Fields

teamId :: Text
 
teamName :: Text
 

data User Source

Constructors

User 

Fields

userId :: Text
 
userName :: Text
 

data Group Source

Constructors

Group 

Fields

groupId :: Text
 
groupName :: Text
 
members :: [Text]
 

data IM Source

Constructors

IM 

Fields

imId :: Text
 
user :: Text
 

Instances

data Message Source

Constructors

Message 

Fields

messageTs :: Text
 
messageValue :: Either Value UserMessage
 

data Me Source

Constructors

Me 
NotMe 

Instances