Skip to content
Dashboard

Chat SDK adds Discord Components V2 support

lib/bot.tsx
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.post(
<Card title="Deployment ready" subtitle="Production build completed">
<Section>
<CardText>
**Version 2.4.0** is ready to promote.
Review the release notes, then choose an action below.
</CardText>
<Image url="https://example.com/deploy-preview.png" alt="Preview" />
</Section>
<Actions>
<Button id="promote" style="primary">Promote</Button>
<Button id="rollback" style="danger">Roll back</Button>
<LinkButton url="https://example.com/deployments/123">View deployment</LinkButton>
</Actions>
</Card>
);

A card with sections, markdown, images, and actions rendered as Discord Components V2.

Ready to deploy?