#Is https://bun.sh/ supported by Discord.js?

25 messages · Page 1 of 1 (latest)

ionic wren

Just wondering if Bun is supported by discord.js :D

pastel riverBOT
  • 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!
woeful tulip

no, it'd have to be the other way around

according to bun.sh, node:events is lacking on, which is a feature that djs employs heavily, so it's likely that bun doesn't support djs.

whatever the case though, best way to find out is to try it

ionic wren

👍🏻

celest chasm

it does

sage beacon

Bun claims to fully support discord.js by now. Any issues caused by running it with bun should be reported on the bun repo and will be fixed by them. They even have a dedicated page showing how to write a djs bot with bun

humble raven

Bun is working perfectly fine, I'm using it

fickle harbor

WWWWWWW

marsh scarab

Saw an open source project using bun, you're probably fine

molten kettle

on voiceStateUpdate event i cant get newState, just the oldState exists in the event

while using node there is no prob tho

it happens only with bun

sage beacon
molten kettle

i tested it with latest version of bun a minute ago, and it looks like works without problem

what i said before was happened 1 or 2 days ago

celest chasm

keep in mind .node / native addons dont work in bun

afaik

sage beacon

And what does that have to do with using discord.js in bun?

celest chasm

discord.js opus

canvas, bot associated native addons

urban wren

but bun build doesn't work with them

celest chasm

partial support afaik