slack-web-2.2.0.0: Bindings for the Slack web API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Web.Slack.Reactions

Description

Synopsis

Documentation

data AddReq Source #

Add a reaction to a message.

https://api.slack.com/methods/reactions.add

Since: 2.1.0.0

Constructors

AddReq 

Fields

Instances

Instances details
Show AddReq Source # 
Instance details

Defined in Web.Slack.Reactions

Eq AddReq Source # 
Instance details

Defined in Web.Slack.Reactions

Methods

(==) :: AddReq -> AddReq -> Bool #

(/=) :: AddReq -> AddReq -> Bool #

ToForm AddReq Source # 
Instance details

Defined in Web.Slack.Reactions

Methods

toForm :: AddReq -> Form #

data AddResp Source #

Response to reactions.add. Slack doesn't send us anything here.

Since: 2.1.0.0

Constructors

AddResp 

Instances

Instances details
FromJSON AddResp Source # 
Instance details

Defined in Web.Slack.Reactions

ToJSON AddResp Source # 
Instance details

Defined in Web.Slack.Reactions

Show AddResp Source # 
Instance details

Defined in Web.Slack.Reactions

Eq AddResp Source # 
Instance details

Defined in Web.Slack.Reactions

Methods

(==) :: AddResp -> AddResp -> Bool #

(/=) :: AddResp -> AddResp -> Bool #

type Api = "reactions.add" :> (AuthProtect "token" :> (ReqBody '[FormUrlEncoded] AddReq :> Post '[JSON] (ResponseJSON AddResp))) Source #