How to deploy discord bot app through workers ?
I've followed Discord tutorial step by step and got issues with node compatibility ! I need to know whether is possible to deploy my bot app builts with discordjs to cloudflare or not; thanls
Source: https://discord.com/developers/docs/tutorials/hosting-on-cloudflare-workers#creating-your-cloudflare-worker
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
5 Replies
discord.js connects to the gateway, which isn’t supported with workers since they’re serverless. So no, not really. You can deploy http only interaction bots however
The tutorial is building a bot to process interactions like Application Commands, Slash Commands
https://discord.com/developers/docs/interactions/overview
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
yeah, I'm with the same trouble, I'm totally lost
did u guys found some solution?
i dind't 😦
If you want your bot connect to the gateway, you should choose the service like Bot-Hosting.net that can keeps your bot running, not serverless service like Cloudflare Workers
ohh okay
sad
I'll try this one
ty @AngusMa
❤️