Slackblocks.Objects.DispatchActionConfiguration (slackblocks v2.8.0)
View SourceChooses which interactions with an input send a block_actions payload.
Slack reference: https://docs.slack.dev/reference/block-kit/composition-objects/dispatch-action-configuration-object
Fields
trigger_actions_on— Adds the interactions that send a payload: on_enter_pressed or on_character_entered. Optional;nilomits the field.
Summary
Functions
Atomically replaces supplied fields; omitted fields retain their values.
Replaces fields or raises Slackblocks.ValidationError.
Constructs and validates a value. Text conveniences apply to keyword input.
Constructs a value or raises Slackblocks.ValidationError.
Types
@type t() :: %Slackblocks.Objects.DispatchActionConfiguration{ trigger_actions_on: [binary()] | nil }
Functions
@spec change( t(), keyword() ) :: {:ok, t()} | {:error, Slackblocks.ValidationError.t()}
Atomically replaces supplied fields; omitted fields retain their values.
Replaces fields or raises Slackblocks.ValidationError.
@spec new(keyword()) :: {:ok, t()} | {:error, Slackblocks.ValidationError.t()}
Constructs and validates a value. Text conveniences apply to keyword input.
Constructs a value or raises Slackblocks.ValidationError.