Skip to content

Commit

Permalink
feat: add filter in MultiSelectBlockElement (#1373)
Browse files Browse the repository at this point in the history
Hi! This was an existing PR (#1191) that had breaking changes and was
unmaintained.

This one does not break anything and only add the missing field.

This is specified at
https://api.slack.com/reference/block-kit/block-elements#conversations_select,
which is supported by multi-selects.

Signed-off-by: Nathanael DEMACON <[email protected]>
Co-authored-by: Nathanael DEMACON <[email protected]>
  • Loading branch information
quantumsheep and quantumsheep authored Feb 19, 2025
1 parent f3c8db1 commit a8c2a8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block_element.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ type MultiSelectBlockElement struct {
InitialUsers []string `json:"initial_users,omitempty"`
InitialConversations []string `json:"initial_conversations,omitempty"`
InitialChannels []string `json:"initial_channels,omitempty"`
Filter *SelectBlockElementFilter `json:"filter,omitempty"`
MinQueryLength *int `json:"min_query_length,omitempty"`
MaxSelectedItems *int `json:"max_selected_items,omitempty"`
Confirm *ConfirmationBlockObject `json:"confirm,omitempty"`
Expand Down

0 comments on commit a8c2a8f

Please sign in to comment.