Skip to content

Commit 8549d83

Browse files
authored
docs: update sending a message with a component section
Added a warning alert box to make users aware of the "IS_COMPONENTS_V2" message flag being irreversible when set to a message.
1 parent e1fe800 commit 8549d83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/components/using-message-components.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ If you are sending components as part of a [webhook](/docs/resources/webhook) yo
2424

2525
To send a message with a component, you need to set the `IS_COMPONENTS_V2` flag (`1<<15`) in your message's `flags` field. This can be done when using [Message Create](/docs/resources/message#create-message), [Execute Webhook](/docs/resources/webhook#execute-webhook), or [responding to an interaction](/docs/interactions/receiving-and-responding#create-followup-message).
2626

27+
:::warn
28+
Setting the `IS_COMPONENTS_V2` message flag cannot be reverted: once the message has been sent, the flag cannot be removed from the message when editing the message.
29+
:::
30+
2731
This flag indicates that the message contains components and disables traditional content and embeds.
2832

2933
All content must be sent as components instead of using the standard message format.
@@ -103,4 +107,4 @@ See the [list of supported component types](/docs/components/reference#component
103107

104108
You can use this information to respond to the interaction, update the message, or perform other actions, such as displaying a modal based on the user's input.
105109

106-
Check out the [Interactions documentation](/docs/interactions/overview) for more information on handling interactions and responding to user input from interactive components.
110+
Check out the [Interactions documentation](/docs/interactions/overview) for more information on handling interactions and responding to user input from interactive components.

0 commit comments

Comments
 (0)