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
Was this page helpful?