megachangelog
Feature

Chat SDK adds Discord Components V2 support

The Chat SDK now supports Discord Components V2, an opt-in layout system that lets you arrange text, images, files, and buttons as flexible components with native containers and sections. The release also adds thread renaming, global mention filtering, and improved mention detection for Discord bots.

You can now send Discord bot messages with , an opt-in layout system that treats text, images, files, and buttons as flexible components you can arrange in any order.Components V2

Set the adapter's option to and cards render with native containers, sections, media galleries, separators, buttons, and string selects. Embeds remain the default, so existing bots work unchanged.contentFormatComponentsV2

Individual sections can carry their own actions, markdown renders correctly inside components, and the adapter enforces Discord's platform limits for you, including the 40-component cap per message.

This release also includes several other Discord adapter improvements:

to get started or browse the .Read the documentationadapter directory

Special thanks to community contributors , , , and for laying the groundwork for these improvements.DeanMauroonmaxFarazPatankarsivchari

Read more

  • A new method renames native Discord thread channels. Your bot needs the Manage Threadspermission to use it.Rename threads: setThreadTitle()

  • Bots running in gateway mode no longer treat and announcements as mentions. A new config option (default ) lets you opt back in. Direct mentions, role mentions, and replies to the bot are unaffected.Ignore global pings: @everyone@hererespondToGlobalMentionsfalse

  • Mentions of similarly named users no longer trigger false matches. A message with no longer counts as a bot tag.Precise mention detection: @bot-dev

discordchat-sdkcomponentsbots

Source: original entry ↗