Build Compose - Free Discord Message Builder
Builders & UI 6 min read Updated: 2026-11-10

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.

#Components V2 #Discord API #UI Layouts #Containers

Build Components V2 Visually

Create nested containers, action rows, and text displays with live preview in BuildCompose.

Open Components V2 Builder
1

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.

Pro Tip

To enable Components V2 in raw API requests, messages must include the flag 32768 (MessageFlags.IsComponentsV2). Without this flag, Discord rejects Container components.

2

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.

3

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.

Discord Components V2 Payload (JSON)
{
  "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."
        }
      ]
    }
  ]
}
discord.js (v14+ / REST)
// 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'
        }
      ]
    }
  ]
});
4

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.

Migration Shortcut

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

Related Guides