Currently the documentation here pertains to the canary tag of Dressed (dressed@1.10.0-canary.5.x
), keep in mind that some items (especially talked about in the deployment guides) are not available / work slightly differently in the @latest
version.
Dressed is a Discord bot library that allows you to host a bot using the interactions endpoint system for Discord. Discord will send POST requests to your bot, instead of the websocket system that other libraries utilize.
For more information on common functions (e.g. getUser, createChannel, etc.), see the docs on JSR.
One cool feature of Dressed is that you can make dynamic component IDs, so that you only need to write one component handler for many different scenarios. See more
Quick usage
bun add dressed
import { createMessage } from "dressed";
createMessage("<CHANNEL_ID>", "Hello from Dressed!");
bun index.ts
For more information on how to create a simple bot, check out the getting started guide. You can find an example of some bots ready to deploy on Vercel and Deno deploy in this repo.
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
.