I have some data in Array. I want it to send the data in a channel in the form of a .json
file. How to do that in Eris?
You can find the docs here. So how you would send it in a channel via a file would be
<Client>.createMessage(<Message>.channel.id, 'Text', {file: {file.name: '<name>.json', file.file: 'Put your array data here'}})
I hope this helped!