Dyno

Components V2 Customization

Learn what Components V2 are and how you can customize them!

Customizing Components V2

Components V2 is Discord's newer way to build messages. Instead of one fixed embed layout, you stack building blocks in whatever order you like. Text, images, buttons and dividers can all go where you want them.

While visually they might look similar to embeds, CV2 behave very differently! In this page we might compare some of their aspects to embeds, but that's merely for simplicity and familiarity reasons.

Building Blocks

Notes:

  • When it comes to buttons, you can only add Link buttons, not interactive ones.
  • Fields that require a URL need a valid URL. For example https://dyno.gg, and not dyno.gg.
  • A Section can't exist without its accessory, and a Container can't be empty.
  • You can use IDs to mention users, roles, and/or channels. For more information on how to mention using IDs, visit this page.
  • If you're looking to add custom emojis to your message follow this guide! Just keep in mind Dyno needs to be in the server where that emoji is from.

Unlike embeds, CV2 messages do not suppress mentions. That means, if the module allows it, user, role, and @everyone/@here pings will actually mention the relevant users!

Here's what a Components V2 message can look like:
cv2_example.png

Coming From Embeds?

Most embed parts have a CV2 equivalent:

Embed Components V2
Color Container → Accent Color
Title Text Display with a heading (# Title)
Description Text Display
Author / Footer Text Display with small text (-# text). Author/footer icons don't have a counterpart.
Thumbnail Section → Thumbnail accessory
Image Media Gallery
Fields Text Displays or Sections, split up with Separators

Embed fields and inline layouts don't exist in CV2. If you want side-by-side content, a Section is the closest thing.

Components V2 Limits

Discord has imposed certain limits on Components V2 messages:

Everything counts toward the 40-component limit, including blocks inside a Container. A Container holding a Section with 2 Text Displays and a Thumbnail already uses 5 components. Likewise, the 4000 characters is shared across all the text in the message, not per Text Display.