components-v2-layout

Train developers to design Discord message layouts with Components v2 containers, sections, and separators.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/ErdemGKSL/open-guard-rs --skill components-v2-layout
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: components-v2-layout
Source: https://github.com/ErdemGKSL/open-guard-rs/tree/main/.opencode/skill/components-v2-layout
Command: npx skills add https://github.com/ErdemGKSL/open-guard-rs --skill components-v2-layout

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a practical guide to building structured Discord messages using Components v2 Containers, Sections, and Separators, enabling consistent layouts across bots.

Core Features & Use Cases

  • Container-based layouts that wrap multiple components into a single message.
  • Section and Separator patterns for horizontal text and interactive elements.
  • Practical examples like status dashboards and help menus using Components v2.

Quick Start

Create a Container with inner components, wrap it in a CreateComponent::Container, and send the message with the IS_COMPONENTS_V2 flag.

Frequently Asked Questions about components-v2-layout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Discord bot message layouts using Components v2?

To build Discord bot message layouts using Components v2, create a Container with inner components, wrap it in a CreateComponent::Container, and send the message with the IS_COMPONENTS_V2 flag enabled for proper rendering.

What is a Discord Components v2 Container used for?

A Discord Components v2 Container is used to wrap multiple inner components into a single structured message. It enables consistent horizontal text and interactive element layouts across bot scenarios like status dashboards and help menus.

How do I structure text and interactive elements in a Discord Components v2 Section?

To structure text and interactive elements in a Discord Components v2 Section, group up to 3 text blocks per Section and use Separator patterns to visually divide horizontal text and interactive elements within the Container layout.

Can I use Components v2 layouts for announcements across multiple guilds?

Yes, you can use Components v2 layouts for announcements across multiple guilds. The Container and Section patterns ensure consistent and responsive message layouts regardless of the specific guild channel rendering the bot message.

Why are my Discord Components v2 messages not rendering correctly?

Discord Components v2 messages fail to render correctly if the IS_COMPONENTS_V2 flag is not enforced for message rendering. You must wrap inner components in a Container and explicitly set this flag when sending the layout.

What is the best way to create a status dashboard layout in a Discord bot?

The best way to create a status dashboard layout in a Discord bot is using Components v2 Containers and Sections. Wrap inner components in a Container, apply the IS_COMPONENTS_V2 flag, and use Separators to organize the dashboard blocks.