`broadcastEval()` fails to return promise, blocking my thread when awaiting it

Just a note: im using discord-hybrid-sharding I've verified that all shards are ready using manager.spawn().then() In this example: the 'hello world' is printed, however second console log never prints because of the await Even though I've removed all the code from the broadcastEval, it still behaves like this.
const abc = await xxx.broadcastEval((c, ctx) => {
console.log('hello world')
return true;
});

console.log(abc);
const abc = await xxx.broadcastEval((c, ctx) => {
console.log('hello world')
return true;
});

console.log(abc);
3 Replies
d.js toolkit
d.js toolkit3mo 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! - Marked as resolved by staff
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
logic
logicOP3mo ago
Okay I thought the behaviour of the function was the same

Did you find this page helpful?