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