我刚接触到不和谐的机器人,也不太明白,所以也许我是在做蠢事。我试图嵌入一个消息,但是我得到了错误的(node:15832) UnhandledPromiseRejectionWarning: TypeError: fields.flat is not a function。我试着从不和谐的网站复制这个例子,只是使用了它,但是它仍然给出了这个错误!
client.on('message', message => {
// deal with messages / commands
// If the message is "how to embed
我想显示一张图片,来自于Imgur (空间保护),它根本没有加载。在原始HTML文件tho中工作良好。
<img src="https://i.imgur.com/s6eSELd.png"> <br>
<!-- just an example image -->
日志:
how_to_install:16 GET https://i.imgur.com/s6eSELd.png 403
app.js:11 Social Blade: Initializing on www.youtube.com
www-embed-player.js:655
我对spring引导应用程序的结构有点困惑,现在我有了一个可以成功运行的spring引导应用程序,并且嵌入式服务器-tomcat也可以在没有错误的情况下启动。但是,当我使用访问主页时,浏览器会用一个空白页进行响应,并且服务器日志中会出现错误。
org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
at org.apache.catalina.con
我正在使用JavaScript和discord.js制作一个不和谐的机器人。在这里,我想向一个通道发送一个RichEmbed/MessageEmbed (我不知道它是怎么叫的)。它没有发送嵌入,而是在discord.js内部抛出了一个错误。
TypeError: fields.flat is not a function
at Function.normalizeFields (D:\discord-bot\node_modules\discord.js\src\structures\MessageEmbed.js:436:8)
at MessageEmbed.addField