Skip to content

Commit 11c132a

Browse files
Update receiving-and-responding.mdx (discord#7598)
* Update receiving-and-responding.mdx `IS_COMPONENTS_V2` allowed as interaction message callback * Added dangling comma, fixed tables * Added `IS_VOICE_MESSAGE` * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx * Update docs/interactions/receiving-and-responding.mdx --------- Co-authored-by: Anthony <anthony.tesija@discordapp.com>
1 parent d6a8cba commit 11c132a

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

docs/interactions/receiving-and-responding.mdx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,24 @@ There are a number of ways you can respond to an interaction:
243243
Not all message fields are currently supported.
244244

245245

246-
| Field | Type | Description |
247-
|-------------------|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
248-
| tts? | boolean | Whether the response is TTS |
249-
| content? | string | Message content |
250-
| embeds? | array of [embeds](/docs/resources/message#embed-object) | Supports up to 10 embeds |
251-
| allowed_mentions? | [allowed mentions](/docs/resources/message#allowed-mentions-object) | [Allowed mentions](/docs/resources/message#allowed-mentions-object) object |
252-
| flags? \* | integer | [Message flags](/docs/resources/message#message-object-message-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) (only `SUPPRESS_EMBEDS`, `EPHEMERAL`, and `SUPPRESS_NOTIFICATIONS` can be set) |
253-
| components? | array of [components](/docs/components/reference#component-object) | Message components |
254-
| attachments? \*\* | array of partial [attachment](/docs/resources/message#attachment-object) objects | Attachment objects with filename and description |
255-
| poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll |
246+
| Field | Type | Description
247+
|
248+
|-------------------|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
249+
| tts? | boolean | Whether the response is TTS
250+
|
251+
| content? | string | Message content
252+
|
253+
| embeds? | array of [embeds](/docs/resources/message#embed-object) | Supports up to 10 embeds
254+
|
255+
| allowed_mentions? | [allowed mentions](/docs/resources/message#allowed-mentions-object) | [Allowed mentions](/docs/resources/message#allowed-mentions-object) object
256+
|
257+
| flags? \* | integer | [Message flags](/docs/resources/message#message-object-message-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) (only `SUPPRESS_EMBEDS`, `EPHEMERAL`, `IS_COMPONENTS_V2`, `IS_VOICE_MESSAGE`, and `SUPPRESS_NOTIFICATIONS` can be set) |
258+
| components? | array of [components](/docs/components/reference#component-object) | Message components
259+
|
260+
| attachments? \*\* | array of partial [attachment](/docs/resources/message#attachment-object) objects | Attachment objects with filename and description
261+
|
262+
| poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll
263+
|
256264

257265
\* If you create a callback with the [type](/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-type) `DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE` the only valid [message flag](/docs/resources/message#message-object-message-flags) you may use is `EPHEMERAL`. If you'd like to create a component based message with `IS_COMPONENTS_V2` you must do that with the [followup](/docs/interactions/receiving-and-responding#followup-messages) message, not this one.
258266

0 commit comments

Comments
 (0)