import { ActionsRouter } from "https://deno.land/x/deno_slack_sdk@2.13.0/functions/interactivity/block_actions_router.ts";
Add an action handler for something that can match an action event.
Parameters
actionConstraint: BlockActionConstraint
A BlockActionConstraintField(i.e. a string, array of strings or regular expression) or more complex BlockActionConstraintObject to match incoming block action events. A BlockActionConstraintField parameter are matched with a block action event's action_id
property. A BlockActionConstraintObject parameter allows to match with other block action event properties like block_id
as well as action_id
. If multiple properties are specified using BlockActionConstraintObject, then the event must match ALL provided BlockActionConstraintObject properties.
handler: BlockActionHandler<FunctionDefinitionArgs<InputParameters, OutputParameters, RequiredInput, RequiredOutput>>
Returns
ActionsRouter<InputParameters, OutputParameters, RequiredInput, RequiredOutput>