Issues with discord.js errors in Bun
Hello. I am looking to confirm that I am not the only one with the following issue. I'm also trying to understand if this is an issue with Bun or discord.js
When running with Bun, I no longer get the same more useful errors that I get when running in Node.
Image 1 is on Bun.
Image 2 is on Node.
Would appreciate some insight :)
20 Replies
- 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!Can you try awaiting the reply call?
Gives the same results
The error is quite clear, you didn't put any data into the reply options
That is intentional in order to trigger the error
We don't really officially support Bun, couldn't tell you why it isn't logging stacktraces but that isnt a discord.js issue
We don't really officially support BunIs that something that might happen one day? Other than this, my bot works great in 99% of cases. The 1% being a very weird bug: https://discord.com/channels/222078108977594368/824411059443204127/1205806210495021066
I use bun 1.0.26 for my discord bot with no problems
https://github.com/Aryxst/efestus-bot
GitHub
GitHub - Aryxst/efestus-bot
Contribute to Aryxst/efestus-bot development by creating an account on GitHub.
mine is pretty simple
Would you mind confirming something for me?
If you add
to https://github.com/Aryxst/efestus-bot/blob/master/src/events/interactionCreate.ts#L13 and run a command, how does your console look?
Just avoid using this strategy
do like i did
i dont get any errors
and the error is because you have to provide content to the message, just add content
I know. That's not what this thread is about. It was about figuring out why Bun doesn't log proper errors
isnt this one?
Same exact code running on Node:
But your image confirms it's not just me
thats just how bun handles errors, its not a discordjs issue
unfortunate
you could try opening an issue on bun's github
I posted in their Discord for now