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?
Asked
Active
Viewed 472 times
1 Answers
0
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!
Edit: The past one was wrong. The correct format is
<Client>.createMessage(<Message>.channel.id, 'Text', {file: {file.name: '<name>.json', file.file: 'Put your array data here'}})

RaymondJiang1
- 56
- 1
- 5