Deploy discord bots on Vercel

About a year ago, Discord introduced the ability to receive interaction events via HTTP, which can be hosted using our beloved Vercel.

I created an open-source library, discord.https, to simplify development process, along with documentation and a handy CLI template tool, similar to create-next-app.

It is built with a router architecture inspired by the routing style of the popular library, Express.

I’ve also written a tutorial on how to host it with Vercel: How to Deploy a Discord Bot on Vercel 🚀 - DEV Community .

You can check out the project here: GitHub - discordhttps/discord.https: Discord.https is a robust, modular library for implementing Discord HTTP interactions.

I’d like to hear your thoughts and would greatly appreciate any feedback, as this is my first tutorial article.

3 Likes

Thanks for sharing! Welcome to the Community :waving_hand:

Have you seen this thread too? Worth checking out!

1 Like

Great writeup — this is a popular thread for Discord on Vercel! Worth adding that Vercel just released the Chat SDK (npm i chat), an open-source TypeScript library that wraps Discord (and Slack, Teams, GitHub, Linear, Google Chat) behind a unified event-driven API.

It could be a useful option alongside discord.https if you need multi-platform support or want to avoid managing the interaction model differences yourself. One codebase, every chat platform.

Reference: Introducing npm i chat – One codebase, every chat platform - Vercel