Command
io.laserdisc.slack4s.slashcmd.Command
case class Command[F[_]](handler: F[ChatPostMessageRequest], responseType: ResponseType, logId: LogToken)
The description of a Command - an effect to be evaluated, providing a response (along with instructions on how to deliver the response.
Value parameters
- handler
-
An effect which returns a
ChatPostMessageRequest
, the Slack SDK payload representing a response. For information on (and a really useful utility for experiementing with) slack responses, see the slack block kit builder - https://api.slack.com/tools/block-kit-builder - logId
-
By default
NA
, this is simply a (alphanumeric, dashes and underscores only) string which will be used in log messages, useful for filtering logs for particular command type output. - responseType
-
Whether this command is evaluated immediately and response returned, or processed in the background, and returned later. See
ResponseType
for more. Defaults to Delayed
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article