Deploy Discord bots to Vercel

Hey all!
I was recently reading this article on Vercel guides about deploying Discord bots to Vercel. It didn’t have clear instructions or a method to do so, so I winged it and started work on my own solution.
Discord bots deployed to Vercel only work with application commands, not events, but at least it’s a lot better than just webhooks or nothing at all.

I created an open-source library that streamlines the development and deployment process, as well as a tutorial on how to use it. I would love feedback… does it work for you? How I can improve it? :heart:

Tutorial:
https://dev.to/best_codes/make-a-free-ai-chatbot-with-discord-vercel-373l

I was also wondering if there is any official way to contact Vercel about this and possibly update the Vercel guide page.


Cheers! :tada:

2 Likes

Hey, @bestcodes! Welcome to the Vercel Community :smile:

This is a great article and project. Thank you for sharing with us! I’m sure that this will be helpful to those wanting to deploy their own Discord bots to Vercel.

You’re in the right place! We’ll see what we can do. What were you thinking?

3 Likes

Thanks for the fast reply!

As far as updating the Vercel guide page (not sure how that’s managed, is it a public repository?), I had a few things in mind:

  • Mention that Discord bots with applications commands can be deployed to Vercel, but make note of serverless limitations
  • Have an example or examples of how to do so. This could be starting from scratch or using a framework, like Discraft or other frameworks that might support Vercel deployment (but I don’t think there are any others yet)

I think the Vercel guide kinda paints it as not possible right now, but it is possible (with limitations) so an update might be good. :slight_smile:
I also completely understand if you can’t mention third-party libraries in the Vercel guide; mentioning Discraft would be very nice (:wink:), but Vercel doesn’t own it, so I’m not sure if it could be mentioned anyway.

@pawlean I just now realized I forgot to mention you, sorry :face_with_open_eyes_and_hand_over_mouth:
I replied to you above.

1 Like

No worries at all! Thank you for your patience :smile:

It isn’t a public repository, we manage this in a CMS.

Thank you for the idea! Let me see what we can do :pray:

2 Likes

Launched this on Peerlist now! If you have feedback, please comment, it helps a lot :heart:
https://peerlist.io/bestcodes/project/video-dark-to-light-mode-converter

3 Likes

Sorry, posted the above in the wrong spot…

I’ve been in so many threads, don’t worry! I thought it was the right one :laughing:

1 Like