Skip to main content

Chat SDK adds Discord Components V2 support

By Steven Van ·

The adapter also gets thread renaming, quieter handling of @everyone pings, and more accurate mention matching.

The Vercel-maintained Discord adapter for Chat SDK now supports Components V2, Discord's opt-in layout system that treats text, images, files, and buttons as flexible components arranged in any order. Setting the adapter's contentFormat option to ComponentsV2 renders cards with native containers, sections, media galleries, separators, buttons, and string selects, while embeds remain the default so existing bots keep working unchanged. Individual sections can carry their own actions, markdown renders correctly inside components, and the adapter enforces Discord's 40-component cap per message, throwing a validation error rather than letting Discord reject an oversized card.

The release also includes three other Discord adapter changes:

  • A new setThreadTitle() method renames native Discord thread channels, provided the bot has the Manage Threads permission.
  • Bots running in gateway mode no longer treat @everyone and @here announcements as mentions; a respondToGlobalMentions option, off by default, can restore the old behavior. Direct mentions, role mentions, and replies to the bot are unaffected.
  • Mention detection is more precise, so a message containing @bot-dev no longer counts as a mention of the bot.
Vercel
Vercel
The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.
View Vercel →

Read the original announcement →

Read Chat SDK adds Discord Components V2 support on Creators Toolbox