Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions developers/resources/channel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -662,15 +662,15 @@ This endpoint supports the `X-Audit-Log-Reason` header.
When sending a message, apps must provide a value for **at least one of** `content`, `embeds`, `sticker_ids`, `components`, or `files[n]`.
</Info>

| Field | Type | Description |
|-------------------|-----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| content?\* | string | Message contents (up to 2000 characters) |
| embeds?\* | array of [embed](/developers/resources/message#embed-object) objects | Up to 10 `rich` embeds (up to 6000 characters) |
| allowed_mentions? | [allowed mention object](/developers/resources/message#allowed-mentions-object) | Allowed mentions for the message |
| components?\* | array of [message component](/developers/components/reference#component-object) objects | Components to include with the message |
| sticker_ids?\* | array of snowflakes | IDs of up to 3 [stickers](/developers/resources/sticker#sticker-object) in the server to send in the message |
| attachments? | array of partial [attachment request](/developers/resources/message#attachment-object-attachment-request-structure) objects | Metadata for the attachments. See [Uploading Files](/developers/reference#uploading-files) |
| flags? | integer | [Message flags](/developers/resources/message#message-object-message-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) (only `SUPPRESS_EMBEDS` and `SUPPRESS_NOTIFICATIONS` can be set) |
| Field | Type | Description |
|-------------------|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| content?\* | string | Message contents (up to 2000 characters) |
| embeds?\* | array of [embed](/developers/resources/message#embed-object) objects | Up to 10 `rich` embeds (up to 6000 characters) |
| allowed_mentions? | [allowed mention object](/developers/resources/message#allowed-mentions-object) | Allowed mentions for the message |
| components?\* | array of [message component](/developers/components/reference#component-object) objects | Components to include with the message |
| sticker_ids?\* | array of snowflakes | IDs of up to 3 [stickers](/developers/resources/sticker#sticker-object) in the server to send in the message |
| attachments? | array of partial [attachment request](/developers/resources/message#attachment-object-attachment-request-structure) objects | Metadata for the attachments. See [Uploading Files](/developers/reference#uploading-files) |
| flags? | integer | [Message flags](/developers/resources/message#message-object-message-flags) combined as a [bitfield](https://en.wikipedia.org/wiki/Bit_field) (only `SUPPRESS_EMBEDS`, `SUPPRESS_NOTIFICATIONS`, and `IS_COMPONENTS_V2` can be set) |

\* At least one of `content`, `embeds`, `sticker_ids`, `components`, or `files[n]` is required.

Expand Down