messages_compose
Compose and preview Discord announcements locally, including text, typed embeds, files, polls, and Components V2, before publishing without sending to Discord.
Instructions
Purpose: Compose and preview a complete Discord announcement locally: text, typed embeds, uploaded files, polls, and Components V2. Long text and incompatible classic/V2 layouts become ordered message parts.
When to use: Prepare a rich announcement, tournament post, report, or survey before publishing.
Files: Supply bounded base64 data URIs; preview returns filenames, sizes, and hashes without file bytes.
Next: Present the draft, then call messages_publish with the same fields to obtain its target-bound approval.
Returns: {part_count, draft_hash, preview}. No Discord request or write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tts | No | ||
| poll | No | ||
| files | No | ||
| embeds | No | ||
| content | No | ||
| components | No | ||
| allowed_mentions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||