What are Discord Components V2? Complete Architecture & Migration Guide
A comprehensive deep dive into Discord's next-generation message layout system, replacing classic embeds with modular, nested container architecture.
Build Components V2 Visually
Create nested containers, action rows, and text displays with live preview in BuildCompose.
What are Components V2 and Why Do They Exist?
Components V2 represents the biggest upgrade to Discord's messaging system in years. While classic embeds were restricted to a fixed layout (title, description, inline fields, footer), Components V2 introduces modular Containers (type 17) and Text Displays (type 10) that can be arranged, nested, and styled with accent colors.
To enable Components V2 in raw API requests, messages must include the flag 32768 (MessageFlags.IsComponentsV2). Without this flag, Discord rejects Container components.
Core Component Types Breakdown
Components V2 is built around versatile building blocks: Container (type 17) groups elements with an optional accent border and spoiler tag; Text Display (type 10) supports markdown, headers, and codeblocks; Section (type 9) pairs text with an accessory like a thumbnail; and Separator (type 14) divides blocks cleanly.
JSON Payload Structure & Code Example
Here is how a basic Components V2 container is structured in JSON and how to send it using discord.js v14 or the Discord REST API.
{
"flags": 32768,
"components": [
{
"type": 17,
"accent_color": 5793266,
"spoiler": false,
"components": [
{
"type": 10,
"content": "### Welcome to our Community Server!\nEnjoy modern rich UI powered by Discord Components V2."
}
]
}
]
}// Send a message with Components V2 container using Discord REST API
await channel.send({
flags: 32768, // MessageFlags.IsComponentsV2
components: [
{
type: 17, // ComponentType.Container
accent_color: 0x5865f2,
components: [
{
type: 10, // ComponentType.TextDisplay
content: '### Modern Components V2 Layout'
}
]
}
]
});How to Migrate from Classic Embeds
Migrating is simple: an embed title and description map directly to a Text Display inside a Container. Embed fields map to either Sections or stacked Text Displays. You can use BuildCompose's Embed to Components V2 Converter tool to convert payloads automatically.
Use our free Embed to Components V2 Converter tool to paste your existing embed JSON and get instantaneous, valid Components V2 code.
Frequently Asked Questions
Can Components V2 be sent via Webhooks?
Are classic embeds being removed?
Can I mix Buttons with Components V2 Containers?
Related Guides
How to Create, Configure & Send Discord Webhooks (Step-by-Step)
Learn how to generate Discord webhooks, format JSON payloads, send custom embeds and bot alerts, and test them with BuildCompose.
How to Make a Discord Embed: Complete Field Anatomy & Design Guide
Learn how to design stunning Discord embeds. Understand author fields, titles, descriptions, inline fields, sidebar colors, and markdown tricks.
Discord Character & Embed Limits Cheatsheet (Updated 2026)
Full reference cheatsheet for Discord API limits: message characters, embed bounds, field counts, Components V2, modals, and rate limits.