Skip to content

Commit 74a9a28

Browse files
committed
Create 2025-03-XX-components-v2.md
1 parent c5ae79d commit 74a9a28

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: "Components V2"
3+
date: "2025-03-XX"
4+
breaking: false
5+
topics:
6+
- "Interactions"
7+
- "Message Components"
8+
---
9+
10+
You can now use more component types in your interactions!
11+
12+
The following new component types are now available:
13+
- `9` - Section
14+
- `10` - Text Display
15+
- `11` - Thumbnail
16+
- `12` - Media Gallery
17+
- `13` - File
18+
- `14` - Separator
19+
- `17` - Container
20+
21+
The new components are available when settings the [message flag](#DOCS_RESOURCES_MESSAGE/message-object-message-flags) `IS_COMPONENTS_V2` (`1 << 15`).
22+
23+
When setting this flag, your ability to send the following fields will be disabled:
24+
- `content`
25+
- `embeds`
26+
- `sticker_ids`
27+
- `poll`
28+
29+
For more information, check out [our documentation on components v2](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/v2-components).
30+
31+
32+
Furthermore, every component now supports a field `id` of the type `integer`. It is used to identify the component in the payload.
33+
34+
The `id` field is not required, but has to be unique. If it's not provided, the component's ids will be set through incremental ids starting from `0`.
35+
36+
The `id` field will be returned in every response where a component is referenced.

0 commit comments

Comments
 (0)