Skip to content

Commit 047d060

Browse files
committed
Update Message_Components.md
1 parent 2cdeb6d commit 047d060

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

docs/interactions/Message_Components.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,29 @@ Components are a field on the [message object](#DOCS_RESOURCES_MESSAGE/message-o
3535

3636
###### Component Types
3737

38-
| Type | Name | Description | Top Level | Version\* |
39-
|------|-------------------------|---------------------------------------------------|-----------|-----------|
40-
| 1 | Action Row | Container for other components | Yes | 1, 2 |
41-
| 2 | Button | Button object | No | 1, 2 |
42-
| 3 | String Select | Select menu for picking from defined text options | No | 1, 2 |
43-
| 4 | Text Input | Text input object | No | 1, 2 |
44-
| 5 | User Select | Select menu for users | No | 1, 2 |
45-
| 6 | Role Select | Select menu for roles | No | 1, 2 |
46-
| 7 | Mentionable Select | Select menu for mentionables (users *and* roles) | No | 1, 2 |
47-
| 8 | Channel Select | Select menu for channels | No | 1, 2 |
48-
| 9 | Section | Section component | Yes | 2 |
49-
| 10 | Text Display | Text display component | Yes | 2 |
50-
| 11 | Thumbnail | Thumbnail component for a section component | No | 2 |
51-
| 12 | Media Gallery | Media gallery component | Yes | 2 |
52-
| 13 | File | File display component | Yes | 2 |
53-
| 14 | Separator | Separator component | Yes | 2 |
54-
| 16 | Content Inventory Entry | Cannot be used by bots | Yes | 1, 2 |
55-
| 17 | Container | Container for other components | Yes | 2 |
38+
| Type | Name | Description | Version\* | Top Level | Interactive\*\* |
39+
|------|-------------------------|---------------------------------------------------|-----------|-----------|-----------------|
40+
| 1 | Action Row | Container for other components | 1, 2 | Yes | No |
41+
| 2 | Button | Button object | 1, 2 | No | Yes |
42+
| 3 | String Select | Select menu for picking from defined text options | 1, 2 | No | Yes |
43+
| 4 | Text Input | Text input object | 1, 2 | No | Yes |
44+
| 5 | User Select | Select menu for users | 1, 2 | No | Yes |
45+
| 6 | Role Select | Select menu for roles | 1, 2 | No | Yes |
46+
| 7 | Mentionable Select | Select menu for mentionables (users *and* roles) | 1, 2 | No | Yes |
47+
| 8 | Channel Select | Select menu for channels | 1, 2 | No | Yes |
48+
| 9 | Section | Section component | 2 | Yes | No |
49+
| 10 | Text Display | Text display component | 2 | Yes | No |
50+
| 11 | Thumbnail | Thumbnail component for a section component | 2 | No | No |
51+
| 12 | Media Gallery | Media gallery component | 2 | Yes | No |
52+
| 13 | File | File display component | 2 | Yes | No |
53+
| 14 | Separator | Separator component | 2 | Yes | No |
54+
| 16 | Content Inventory Entry | Cannot be used by bots | 1, 2 | Yes | No |
55+
| 17 | Container | Container for other components | 2 | Yes | No |
5656

5757
\* Using `v2` components requires setting the [message flag](#DOCS_RESOURCES_MESSAGE/message-object-message-flags) `1 << 15`. Setting the flag will disable the ability to set the `content` and `embeds` field and therefore will throw `Invalid Form Body` if either is sent.
5858

59+
\*\* Interactive components send interactions and require a `custom_id` field.
60+
5961
The structure of each component type is described in detail below.
6062

6163
## Action Rows

0 commit comments

Comments
 (0)