Skip to content

Commit 151d0a2

Browse files
committed
docs: Add documentation for Components V2
1 parent 1d0d716 commit 151d0a2

8 files changed

+522
-51
lines changed

docs/interactions/Message_Components.md

Lines changed: 507 additions & 37 deletions
Large diffs are not rendered by default.

docs/resources/Message.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,21 @@ Represents a message sent in a channel within Discord.
130130

131131
###### Message Flags
132132

133-
| Flag | Value | Description |
134-
|----------------------------------------|-----------|-----------------------------------------------------------------------------------|
135-
| CROSSPOSTED | `1 << 0` | this message has been published to subscribed channels (via Channel Following) |
136-
| IS_CROSSPOST | `1 << 1` | this message originated from a message in another channel (via Channel Following) |
137-
| SUPPRESS_EMBEDS | `1 << 2` | do not include any embeds when serializing this message |
138-
| SOURCE_MESSAGE_DELETED | `1 << 3` | the source message for this crosspost has been deleted (via Channel Following) |
139-
| URGENT | `1 << 4` | this message came from the urgent message system |
140-
| HAS_THREAD | `1 << 5` | this message has an associated thread, with the same id as the message |
141-
| EPHEMERAL | `1 << 6` | this message is only visible to the user who invoked the Interaction |
142-
| LOADING | `1 << 7` | this message is an Interaction Response and the bot is "thinking" |
143-
| FAILED_TO_MENTION_SOME_ROLES_IN_THREAD | `1 << 8` | this message failed to mention some roles and add their members to the thread |
144-
| SUPPRESS_NOTIFICATIONS | `1 << 12` | this message will not trigger push and desktop notifications |
145-
| IS_VOICE_MESSAGE | `1 << 13` | this message is a voice message |
146-
| HAS_SNAPSHOT | `1 << 14` | this message has a snapshot (via Message Forwarding) |
133+
| Flag | Value | Description |
134+
|----------------------------------------|-----------|---------------------------------------------------------------------------------------------------|
135+
| CROSSPOSTED | `1 << 0` | this message has been published to subscribed channels (via Channel Following) |
136+
| IS_CROSSPOST | `1 << 1` | this message originated from a message in another channel (via Channel Following) |
137+
| SUPPRESS_EMBEDS | `1 << 2` | do not include any embeds when serializing this message |
138+
| SOURCE_MESSAGE_DELETED | `1 << 3` | the source message for this crosspost has been deleted (via Channel Following) |
139+
| URGENT | `1 << 4` | this message came from the urgent message system |
140+
| HAS_THREAD | `1 << 5` | this message has an associated thread, with the same id as the message |
141+
| EPHEMERAL | `1 << 6` | this message is only visible to the user who invoked the Interaction |
142+
| LOADING | `1 << 7` | this message is an Interaction Response and the bot is "thinking" |
143+
| FAILED_TO_MENTION_SOME_ROLES_IN_THREAD | `1 << 8` | this message failed to mention some roles and add their members to the thread |
144+
| SUPPRESS_NOTIFICATIONS | `1 << 12` | this message will not trigger push and desktop notifications |
145+
| IS_VOICE_MESSAGE | `1 << 13` | this message is a voice message |
146+
| HAS_SNAPSHOT | `1 << 14` | this message has a snapshot (via Message Forwarding) |
147+
| IS_COMPONENTS_V2 | `1 << 15` | this message uses the new components system. Disables the ability of sending `content` & `embeds` |
147148

148149
###### Example Message
149150

5.86 KB
Loading
5.86 KB
Loading
5.86 KB
Loading
5.86 KB
Loading
5.86 KB
Loading
5.86 KB
Loading

0 commit comments

Comments
 (0)