Deno or Bun support ?

Does Discord.JS support Deno and Bun officially? Or at least have a stable version.
10 Replies
d.js toolkit
d.js toolkit2w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Mark
Mark2w ago
yes
Eris
Eris2w ago
Deno supports d.js pretty well, my bots pretty much all run on Deno and I don't see any issues Except that one random crash I never diagnosed that went away a few updates later...
xTwisteDx
xTwisteDx4d ago
@Eris any chance you know of any documentation on getting Deno up and running? I'm planning on my bot being available on millions of servers (I Hope) and I need every optimization humanly possible.
Amgelo
Amgelo4d ago
there have been djs bots in millions of servers before deno and bun were a thing that being said, if you really want "every possible optimization" you most likely want to use @discordjs/core, not mainlib
xTwisteDx
xTwisteDx4d ago
I mean yeh, but I self-host everything so things like ram and cpu performance matter to me more than most.
Rhae
Rhae4d ago
I use bun with djs - all works fine
Eris
Eris4d ago
My one-server bot barely goes above 0.10% CPU usage and I would assume that if I scaled it, it would stay about the same. Generally, just be performant in the rest of your code, and use workers where you can to multithread.
Eris
Eris4d ago
No description
Eris
Eris4d ago
This is with an active any message listener, by the way

Did you find this page helpful?