broadcastEval() and Typescript
A bit at a loss here, trying to use .broadcastEval to run a function on all shards, for this function I would like to add two parameters as context, one of which is a guild object, but I'm getting these Typescript errors and I just can't seem to find how one is supposed to work with the .broadcastEval method and typescript. Pictures below show the problem.
Removing the types from the function leaves all the code inside with the values as implicitly :any which then causes a bunch of new errors. Do I really need to leave these as "any" and then check inside the function if they are the required type to make typescript be happy, or is there a correct way to do this all?
Removing the types from the function leaves all the code inside with the values as implicitly :any which then causes a bunch of new errors. Do I really need to leave these as "any" and then check inside the function if they are the required type to make typescript be happy, or is there a correct way to do this all?
