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

Safe HaskellNone

Network.Haskbot.SlashCommand

Contents

Description

This provides a representation of the request data from a Slack /slash command/ integration. A Network.Haskbot.Plugin handler function is given direct access to this data type when a slash command is invoked via Slack.

Synopsis

The Slash Command type

data SlashCom Source

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

Constructors

SlashCom 

Fields

token :: !Token

the token corresponding to the slash command integration secret token

teamID :: !TeamID

the team ID of the command 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 command invoker

userName :: !UserName

the username of the command invoker

command :: !Command

the name of the command invoked

optText :: Maybe Text

any text following the invoked slash command

Instances