broadcast eval

If i wanted to use do await this.client.shard.broadcastEval(findMembers, { context: { userId } });, and the function findMembers had a variable called userId i wanted to pass in, whats the correct way of doing it? this is giving me the error that userId isnt defined.even tho userId itself is also defined earlier
4 Replies
d.js toolkit
d.js toolkit16mo 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!
axiprime
axiprime16mo ago
Here an exemple of me using it in a function :
axiprime
axiprime16mo ago
banana ✿
banana ✿OP16mo ago
okay thank u ill try this
Want results from more Discord servers?
Add your server