Bot won't start no matter what (discordjs/core, discordjs/rest and discordjs/ws)
https://sourceb.in/RLr7zcg7Og - client.ts
https://sourceb.in/pgbUy0pxiG - gateway.ts
https://sourceb.in/xssyXZSDYj - worker.ts
https://sourceb.in/8vsX9nteZ7 - rest.ts
tried to log client.on(debug) and (error), also tried to log the dispatch event, nothing never gets logged
13 Replies
latest version for the pacckages i listed
What does happen when you run this, assuming you're running client.ts?
I'm not sure "ready" is accepted as an event name in core
nothing, and i just kinda found the issue
looks like bun is not compatible with
WorkerShardingStrategy
for some reason
with SimpleShardingStrategy
it works
@ʎǝɹquoɯ do yk why it doesnt works with bun?Nope, we don't test bun
If it works it works
ah
thats quite sad
a /core bot is already a pretty lightweight application
you shouldn't need another runtime like bun or deno
just use node imho
i just like bun lol
been using it for 2 or 3 years
tweaked some stuff here and there
https://sourceb.in/UNZTIhGqSY - client.ts
https://sourceb.in/fnc8fBI2Iy - gateway.ts
(rest.ts stays the same ofc)
https://sourceb.in/FFnNHtRWRz - event builder
what is going on chat 😭
could you try running in node just in case, no idea if that'll fix it but worth a try
aaa, ok ill see
what
i guess i forgot to remove the manual emit cause i was trying to use worker stuff lelll
thank you @Jiralite 🙏
how should I fix that
I think you forgot to destructure it
can you show your code
Prob that lol
Mind telling me how
As im quite new to core stuff
I'm pretty sure the README has a full example with interactions
you should only need to copy and paste quite literally
at most change var names ig