Skip to content

Commit daf9974

Browse files
note that deferred callback can only have ephemeral as flag (#7386)
* note that deferred callback can only have ephemeral as flag I believe this is not noted anywhere. In response to https://canary.discord.com/channels/1317206872763404478/1338540867467612253/1338647116192546878 * Update docs/interactions/Receiving_and_Responding.mdx --------- Co-authored-by: Austin Keener <[email protected]>
1 parent 113b7e6 commit daf9974

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/interactions/Receiving_and_Responding.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,14 @@ Not all message fields are currently supported.
245245
| content? | string | Message content |
246246
| embeds? | array of [embeds](#DOCS_RESOURCES_MESSAGE/embed-object) | Supports up to 10 embeds |
247247
| allowed_mentions? | [allowed mentions](#DOCS_RESOURCES_MESSAGE/allowed-mentions-object) | [Allowed mentions](#DOCS_RESOURCES_MESSAGE/allowed-mentions-object) object |
248-
| 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) |
248+
| 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) |
249249
| components? | array of [components](#DOCS_INTERACTIONS_MESSAGE_COMPONENTS/) | Message components |
250-
| attachments? \* | array of partial [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) objects | Attachment objects with filename and description |
250+
| attachments? \*\* | array of partial [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) objects | Attachment objects with filename and description |
251251
| poll? | [poll](#DOCS_RESOURCES_POLL/poll-create-request-object) request object | Details about the poll |
252252

253-
\* See [Uploading Files](#DOCS_REFERENCE/uploading-files) for details.
253+
\* 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`.
254+
255+
\*\* See [Uploading Files](#DOCS_REFERENCE/uploading-files) for details.
254256

255257
###### Autocomplete
256258

0 commit comments

Comments
 (0)