【发布时间】:2017-05-02 13:39:27
【问题描述】:
message.channel.sendMessage(text).attachments
["",{url:"http://openweathermap.org/img/w/"+icon+".png" }];
我用node-js ( discord.js )做了一些机器人。
我想发送带有图片(不带 URL)的消息,所以我在文档中找到了功能附件。 但是,当我在控制台中输入消息(文本)和附件时,我得到:
“无法读取未定义的属性'# '”
我应该怎么做才能解决这个问题?
【问题讨论】: