Hey ๐ I would stop you a bit short though, Cloudflare Workers are not node.js, they instead run o
Hey
I would stop you a bit short though, Cloudflare Workers are not node.js, they instead run on V8, same Javascript Engine as Chrome and similiar Web Environment. There is some nodejs compatibility but no net support/CF only supports TCP Sockets through a special interface. Additionally, Discord bans CF IPs from their CDN except for ephemeral media/static things like Avatars, and they banned CF entirely from Gateway for a while, which I think is still active? Eitherway it just won't really work.
Instead of Gateway bots you can do Interactions Bots/slash commands (https://discord.com/developers/docs/tutorials/hosting-on-cloudflare-workers), but they're semi-limited.
I would stop you a bit short though, Cloudflare Workers are not node.js, they instead run on V8, same Javascript Engine as Chrome and similiar Web Environment. There is some nodejs compatibility but no net support/CF only supports TCP Sockets through a special interface. Additionally, Discord bans CF IPs from their CDN except for ephemeral media/static things like Avatars, and they banned CF entirely from Gateway for a while, which I think is still active? Eitherway it just won't really work.
Instead of Gateway bots you can do Interactions Bots/slash commands (https://discord.com/developers/docs/tutorials/hosting-on-cloudflare-workers), but they're semi-limited.
