Skip to content

Inbestigator/dressed

Repository files navigation

Dressed logo

Dressed

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.

🚀 Usage

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

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

About

A sleek, serverless-ready Discord API library.

Topics

Resources

License

Contributing

Stars

55 stars

Watchers

3 watching

Forks

Packages

 
 
 

Contributors