Skip to content

Commit 623ace0

Browse files
YSaxonseratch
authored andcommitted
Update max elements in ActionsBlock to 25
It seems from practical testing with the slack block kit builder that the (new?) max number of elements allowed in an ActionsBlock is 25, rather than 5 as previously shown in the code. Update 5 -> 25 in docstring as well
1 parent fddaab4 commit 623ace0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slack_sdk/models/blocks/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def _validate_title_length(self):
257257

258258
class ActionsBlock(Block):
259259
type = "actions"
260-
elements_max_length = 5
260+
elements_max_length = 25
261261

262262
@property
263263
def attributes(self) -> Set[str]:
@@ -275,7 +275,7 @@ def __init__(
275275
276276
Args:
277277
elements (required): An array of interactive element objects - buttons, select menus, overflow menus,
278-
or date pickers. There is a maximum of 5 elements in each action block.
278+
or date pickers. There is a maximum of 25 elements in each action block.
279279
block_id: A string acting as a unique identifier for a block.
280280
If not specified, a block_id will be generated.
281281
You can use this block_id when you receive an interaction payload to identify the source of the action.

0 commit comments

Comments
 (0)