How to send files through broadcastEval?

the error is due to an invalid file, the same does not happen when it is sent in the current client

await this.client.shard.broadcastEval(async (shard, { channelId, payload }) => {
    const channel = shard.channels.cache.get(channelId);
    if (!channel?.isTextBased()) return;
    return await channel.send(payload); // files in payload
}, { context: { channelId, payload } });
Was this page helpful?