Skip to content

Commit b727e11

Browse files
Container opened
1 parent f766f4d commit b727e11

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

docs/change-log/2025-04-29-component-limits.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ topics:
77
- "Interactions"
88
---
99

10-
We're removing the top level component limit and raising the limit on components in messages to 40 when using the [`IS_COMPONENTS_V2` message flag](/docs/resources/message#message-object-message-flags)! Legacy messages have not changed and continue to allow up to 5 action rows.
10+
We're removing the top level component limit and raising the limit on number of components in a message to 40 when using the [`IS_COMPONENTS_V2` message flag](/docs/resources/message#message-object-message-flags)! We're also removing the limit on the number of components in a [Container Component](/docs/components/reference#container). Legacy messages have not changed and continue to allow up to 5 action rows.
1111

1212
#### What's New
1313

1414
- **Total components**: The limit for total components in a message has been increased to 40.
1515
- **Top-level components**: There is no longer a limit on top level components in a message (previously it was 10).
16+
- **[Container Component](/docs/components/reference#container)**: There is no longer a limit on the number of components in a Container Component (previously it was 10).
1617

1718
#### Developer Resources
1819

docs/components/reference.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ To use this component, you need to send the [message flag](/docs/resources/messa
10801080

10811081
## Container
10821082

1083-
A Container is a top-level layout component that holds up to 10 components. Containers are visually distinct from surrounding components and have an optional customizable color bar.
1083+
A Container is a top-level layout component. Containers are visually distinct from surrounding components and have an optional customizable color bar.
10841084

10851085
Containers are only available in messages.
10861086

@@ -1090,13 +1090,13 @@ To use this component, you need to send the [message flag](/docs/resources/messa
10901090

10911091
###### Container Structure
10921092

1093-
| Field | Type | Description |
1094-
|---------------|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1095-
| type | integer | `17` for container component |
1096-
| id? | integer | Optional identifier for component |
1097-
| components | array of components | Up to 10 components of the type [action row](/docs/components/reference#action-row), [text display](/docs/components/reference#text-display), [section](/docs/components/reference#section), [media gallery](/docs/components/reference#media-gallery), [separator](/docs/components/reference#separator), or [file](/docs/components/reference#file) |
1098-
| accent_color? | ?integer | Color for the accent on the container as RGB from `0x000000` to `0xFFFFFF` |
1099-
| spoiler? | boolean | Whether the container should be a spoiler (or blurred out). Defaults to `false`. |
1093+
| Field | Type | Description |
1094+
|---------------|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1095+
| type | integer | `17` for container component |
1096+
| id? | integer | Optional identifier for component |
1097+
| components | array of components | Components of the type [action row](/docs/components/reference#action-row), [text display](/docs/components/reference#text-display), [section](/docs/components/reference#section), [media gallery](/docs/components/reference#media-gallery), [separator](/docs/components/reference#separator), or [file](/docs/components/reference#file) |
1098+
| accent_color? | ?integer | Color for the accent on the container as RGB from `0x000000` to `0xFFFFFF` |
1099+
| spoiler? | boolean | Whether the container should be a spoiler (or blurred out). Defaults to `false`. |
11001100

11011101
###### Example
11021102

0 commit comments

Comments
 (0)