> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Platform fields & media

Every Discord platformSpecificData field and the attachment requirements.

## Media requirements

A message takes up to 10 attachments. Discord's per-file limit is 20 MiB by default and higher on Boosted servers.

| Type | Formats | Max size |
|------|---------|----------|
| Images | JPEG, PNG, GIF, WebP | 20 MiB default (higher on Boosted servers) |
| Videos | MP4 | 20 MiB default (higher on Boosted servers) |
| Documents | Any file | 20 MiB default (higher on Boosted servers) |

Media URLs must be publicly reachable HTTPS URLs; upload files through the [media endpoint](/guides/media-uploads) to get one. A poll cannot carry attachments.

## Platform fields

All fields go in `platformSpecificData` on the Discord entry. `channelId` is required.

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `channelId` | string | | Snowflake id of the target channel. Required. |
| `embeds` | Array\<object\> | | Up to 10 Discord embed objects, 6,000 characters combined. See [Embeds](/platforms/discord/posts#embeds). |
| `poll` | object | | Native poll (question, answers, duration). Cannot be combined with media. See [Polls](/platforms/discord/posts#polls). |
| `crosspost` | boolean | `false` | Publish to every follower of an announcement channel. No-op on text channels. |
| `forumThreadName` | string | | Thread title for a forum starter message. Required on forum channels. |
| `forumAppliedTags` | Array\<string\> | | Tag snowflake ids for a forum post, at most 5. |
| `threadFromMessage` | \{name, autoArchiveDuration?, rateLimitPerUser?\} | | Open a thread under the published message. See [Threads](/platforms/discord/posts#threads). |
| `tts` | boolean | `false` | Text-to-speech message: Discord reads it aloud in the channel. |
| `webhookUsername` | string | account default | Display name for this post only, 1 to 80 characters. |
| `webhookAvatarUrl` | string | account default | Avatar URL for this post only. |