I'm trying to split a big message using Util.splitMessage() function, but it's not working correctly. What have I written wrong?
const chunks = [] = Util.splitMessage(list.toString(), { maxLength: 1000 });
chunks.forEach(async chunk => {
await message.channel.send(chunk);
});