0

我在数组中有一些数据。我希望它以文件的形式在通道中发送数据.json。如何在Eris中做到这一点?

4

1 回答 1

0

您可以在此处找到文档。因此,您将如何通过文件将其发送到频道中

<Client>.createMessage(<Message>.channel.id, 'Text', {file: {file.name: '<name>.json', file.file: 'Put your array data here'}})

我希望这有帮助!

编辑:上一个是错误的。正确的格式是

<Client>.createMessage(<Message>.channel.id, 'Text', {file: {file.name: '<name>.json', file.file: 'Put your array data here'}})
于 2021-02-28T00:52:37.223 回答