Menu

Chat SDK adds Discord Components V2 support - Vercel
📰

Chat SDK adds Discord Components V2 support - Vercel

Vercel News·Josh Singh·5 days ago
#xfWuMAE4
#vercel#discord#adapter#components#mentions
Reading 0:00
15s threshold

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 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.

import { Actions , Button , Card , CardText , Image , LinkButton , Section } from "chat" ;

import { createDiscordAdapter , DiscordContentFormat } from "@chat-adapter/discord" ;

const discord = createDiscordAdapter ( {

contentFormat : DiscordContentFormat . ComponentsV2 ,

} ) ;

await thread .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.