To start with, as I understand it, Deno is not officially supported. That said, from what I have been reading, it seemed like there was a reasonable chance of djs working with Deno since it added support for npm packages.
I would really like to use Deno for my bot, so I gave it a go...
Unfortunately, no dice -- I'm getting an error when djs is attempting to construct a WebSocket. I'm wondering if this is a familiar problem, or if anyone has an idea for what may be a fix for this.
Here is the error when I attempt to run (I use "deno task simple" to run it):
error: Uncaught (in promise) SyntaxError: Invalid protocol value. at new WebSocket (ext:deno_websocket/01_websocket.js:203:13) at WebSocketShard.internalConnect (file:///Users/redacted/Library/Caches/deno/npm/registry.npmjs.org/@discordjs/ws/1.1.0/dist/index.js:675:24) at eventLoopTick (ext:core/01_core.js:168:7)
error: Uncaught (in promise) SyntaxError: Invalid protocol value. at new WebSocket (ext:deno_websocket/01_websocket.js:203:13) at WebSocketShard.internalConnect (file:///Users/redacted/Library/Caches/deno/npm/registry.npmjs.org/@discordjs/ws/1.1.0/dist/index.js:675:24) at eventLoopTick (ext:core/01_core.js:168:7)
which is probably why the underlying code is throwing the error.
Again, I understand there isn't any official support, but if there's a workaround for this that allows me to continue using Deno, I would appreciate any ideas.