You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/message.mdx
+37-2Lines changed: 37 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ An app will receive empty values in the `content`, `embeds`, `attachments`, and
56
56
| resolved? |[resolved](/docs/interactions/receiving-and-responding#interaction-object-resolved-data-structure) data | data for users, members, channels, and roles in the message's [auto-populated select menus](/docs/interactions/receiving-and-responding#interaction-response-object-modal)|
57
57
| poll? \[2\]|[poll](/docs/resources/poll#poll-object) object | A poll! |
58
58
| call? |[message call](/docs/resources/message#message-call-object) object | the call associated with the message |
59
+
| shared_client_theme? |[shared client theme](/docs/resources/message#shared-client-theme-object) object | the custom client-side theme shared via the message |
59
60
60
61
\[1\] The author object follows the structure of the user object, but is only a valid user in the case where the message is generated by a user or bot user. If the message is generated by a webhook, the author object corresponds to the webhook's id, username, and avatar. You can tell if a message is generated by a webhook by checking for the `webhook_id` on the message object.
61
62
@@ -766,6 +767,39 @@ Any entities whose id is included can be mentioned. Do note the API will silentl
766
767
| pinned_at | ISO8601 timestamp | the time the message was pinned |
767
768
| message |[message](/docs/resources/message#message-object) object | the pinned message |
@@ -836,10 +870,11 @@ Files must be attached using a `multipart/form-data` body as described in [Uploa
836
870
| 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`, `SUPPRESS_NOTIFICATIONS`, `IS_VOICE_MESSAGE`, and `IS_COMPONENTS_V2` can be set) |
837
871
| enforce_nonce? | boolean | If true and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created. |
838
872
| poll? |[poll](/docs/resources/poll#poll-create-request-object) request object | A poll! |
873
+
| shared_client_theme? |[shared client theme object](/docs/resources/message#shared-client-theme-object)| The custom client-side theme to share via the message |
839
874
840
-
\* At least one of `content`, `embeds`, `sticker_ids`, `components`, `files[n]`, or `poll` is required. When forwarding a message, only `message_reference` is required.
875
+
\* At least one of `content`, `embeds`, `sticker_ids`, `components`, `files[n]`, `poll`or `shared_client_theme` is required. When forwarding a message, only `message_reference` is required.
841
876
842
-
\*\* When the flag `IS_COMPONENTS_V2` is set, the message can only contain `components`. Providing `content`, `embeds`, `sticker_ids`, `files[n]`, or `poll` will fail with a 400 BAD REQUEST response.
877
+
\*\* When the flag `IS_COMPONENTS_V2` is set, the message can only contain `components`. Providing `content`, `embeds`, `sticker_ids`, `files[n]`, `poll`or `shared_client_theme` will fail with a 400 BAD REQUEST response.
0 commit comments