pass variables into <ShardClientUtil>.broadcastEval()

I've got the following code:
var commandName = `foo`;

await client.shard.broadcastEval(async (c) => {

        delete require.cache[require.resolve(`../${commandName}.js`)];
});


how would i modify the function to include var commandName inside of broadcastEval() ?
Was this page helpful?