You can now send Discord bot messages with Components V2, an opt-in layout system that treats text, images, files, and buttons as flexible components you can arrange in any order.
Set the adapter's
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:
Read the documentation to get started or browse the adapter directory.
Special thanks to community contributors DeanMauro, onmax, FarazPatankar, and sivchari for laying the groundwork for these improvements.
Read more
Continue reading...
Set the adapter's
contentFormat option to ComponentsV2 and cards render with native containers, sections, media galleries, separators, buttons, and string selects. Embeds remain the default, so existing bots work unchanged.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:
Rename threads: A newsetThreadTitle()method renames native Discord thread channels. Your bot needs the Manage Threads permission to use it.
Ignore global pings: Bots running in gateway mode no longer treat@everyoneand@hereannouncements as mentions. A newrespondToGlobalMentionsconfig option (defaultfalse) lets you opt back in. Direct mentions, role mentions, and replies to the bot are unaffected.
Precise mention detection: Mentions of similarly named users no longer trigger false matches. A message with@bot-devno longer counts as a bot tag.
Read the documentation to get started or browse the adapter directory.
Special thanks to community contributors DeanMauro, onmax, FarazPatankar, and sivchari for laying the groundwork for these improvements.
Read more
Continue reading...