haskbot-core-0.0.1.0: Easily-extensible chatbot for Slack messaging service

Safe HaskellSafe-Inferred

Network.Haskbot.SlashCommand

Contents

Description

 

Synopsis

The SlashCom type

data SlashCom Source

Encapsulates all data provided by a request from a Slack slash command integration

Constructors

SlashCom 

Fields

token :: !Token

the secret token corresponding to the slash command integration token

teamID :: !TeamID

the team ID of the invoker

channelID :: !ChannelID

the channel ID where the command was invoked

channelName :: !ChannelName

the channel name where the command was invoked

userID :: !UserID

the user ID of the invoker

userName :: !UserName

the username of the invoker

command :: !Command

the name of the command invoked

text :: !Text

any text following the invoked slash command

Instances