Discord · api · fg-0449
Discord send fails with Invalid Form Body when the message is longer than 2000 characters
DiscordAPIError[50035]: Invalid Form Body
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
Cause
Message content is capped at 2000 characters for bots, webhooks and interaction replies alike. Discord counts Unicode code points, so JavaScript string length can overcount emoji but never undercounts.
Fix
Split long text into chunks of at most 2000 characters, or send it as a file attachment.
Apply
for (const part of text.match(/[\s\S]{1,2000}/g) ?? []) {
await channel.send({ content: part, allowedMentions: { parse: [] } });
}Affects: Discord API v10 messages, webhooks and interaction responses, as of 2026-10
Sources
- https://docs.discord.com/developers/resources/message
- https://docs.discord.com/developers/resources/webhook
- https://github.com/discord/discord-api-docs/issues/1173
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp