From 3742a90e1bded5a4347ccf2d58be5b864d279656 Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 23 Jun 2025 23:31:38 +0300 Subject: [PATCH 1/3] fix interaction callback data table --- docs/interactions/receiving-and-responding.mdx | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/docs/interactions/receiving-and-responding.mdx b/docs/interactions/receiving-and-responding.mdx index 7fc911c3cc..90de25aae8 100644 --- a/docs/interactions/receiving-and-responding.mdx +++ b/docs/interactions/receiving-and-responding.mdx @@ -244,23 +244,15 @@ Not all message fields are currently supported. | Field | Type | Description - | |-------------------|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| tts? | boolean | Whether the response is TTS - | -| content? | string | Message content - | -| embeds? | array of [embeds](/docs/resources/message#embed-object) | Supports up to 10 embeds - | -| allowed_mentions? | [allowed mentions](/docs/resources/message#allowed-mentions-object) | [Allowed mentions](/docs/resources/message#allowed-mentions-object) object - | +| tts? | boolean | Whether the response is TTS | +| content? | string | Message content | +| embeds? | array of [embeds](/docs/resources/message#embed-object) | Supports up to 10 embeds | +| allowed_mentions? | [allowed mentions](/docs/resources/message#allowed-mentions-object) | [Allowed mentions](/docs/resources/message#allowed-mentions-object) object | | 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) | -| components? | array of [components](/docs/components/reference#component-object) | Message components - | +| components? | array of [components](/docs/components/reference#component-object) | Message components | | attachments? \*\* | array of partial [attachment](/docs/resources/message#attachment-object) objects | Attachment objects with filename and description - | | poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll - | \* 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. From d95531fc8d133881810f09e27b3e2d86367bd55e Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 23 Jun 2025 23:34:23 +0300 Subject: [PATCH 2/3] fix interaction callback data table --- docs/interactions/receiving-and-responding.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/interactions/receiving-and-responding.mdx b/docs/interactions/receiving-and-responding.mdx index 90de25aae8..c66a27f93d 100644 --- a/docs/interactions/receiving-and-responding.mdx +++ b/docs/interactions/receiving-and-responding.mdx @@ -243,7 +243,7 @@ There are a number of ways you can respond to an interaction: Not all message fields are currently supported. -| Field | Type | Description +| Field | Type | Description | |-------------------|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | tts? | boolean | Whether the response is TTS | | content? | string | Message content | @@ -251,8 +251,8 @@ Not all message fields are currently supported. | allowed_mentions? | [allowed mentions](/docs/resources/message#allowed-mentions-object) | [Allowed mentions](/docs/resources/message#allowed-mentions-object) object | | 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) | | components? | array of [components](/docs/components/reference#component-object) | Message components | -| attachments? \*\* | array of partial [attachment](/docs/resources/message#attachment-object) objects | Attachment objects with filename and description -| poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll +| attachments? \*\* | array of partial [attachment](/docs/resources/message#attachment-object) objects | Attachment objects with filename and description | +| poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll | \* 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. From fd50b7d03daae3af47ebca6da2c7be711045b813 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 24 Jun 2025 00:39:39 +0300 Subject: [PATCH 3/3] fixed formatting error --- docs/interactions/receiving-and-responding.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interactions/receiving-and-responding.mdx b/docs/interactions/receiving-and-responding.mdx index c66a27f93d..c61ca779ef 100644 --- a/docs/interactions/receiving-and-responding.mdx +++ b/docs/interactions/receiving-and-responding.mdx @@ -252,7 +252,7 @@ Not all message fields are currently supported. | 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) | | components? | array of [components](/docs/components/reference#component-object) | Message components | | attachments? \*\* | array of partial [attachment](/docs/resources/message#attachment-object) objects | Attachment objects with filename and description | -| poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll | +| poll? | [poll](/docs/resources/poll#poll-create-request-object) request object | Details about the poll | \* 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.