Dressed is a lightweight Discord API library that provides everything you need to deploy bots using interaction endpoints, making it ideal for serverless platforms like Cloudflare Workers and AWS Lambda.
It supports dynamic component IDs, allowing a single component handler to process many variations of a component.
You can find example bots and templates in the examples repo, perfect for Cloudflare Workers, Vercel, and many more platforms.
bun add dressed// index.ts
import { ActionRow, Button, createMessage } from "dressed";
import { createServer } from "dressed/server";
await createMessage("<CHANNEL_ID>", {
content: "Hello from Dressed!",
components: [ActionRow(Button({ custom_id: "click", label: "Click me!" }))],
});
createServer(
{},
{
buttons: {
click: {
default: (interaction) => interaction.reply("Hello again!"),
},
},
},
{},
);bun index.tsFor more information on how to create a simple bot, check out the getting started guide.
Dressed includes a Node HTTP server out of the box.
If you'd prefer to create your own, all the functions you need are available within dressed/server.
