discord.js错误不存在';不要再发照片了

discord.js错误不存在';不要再发照片了,discord.js,Discord.js,我的bot向我发送了一张图片,但我不知道为什么我现在出现此错误: } else if (`${message.content.search(`test`)}` !== "-1") await message.channel.send('test :', { files: [ "./photo.jpg" ] }); 错误: UnhandledP

我的bot向我发送了一张图片,但我不知道为什么我现在出现此错误:

    } else if (`${message.content.search(`test`)}` !== "-1")

        await message.channel.send('test :', {
        files: [
                "./photo.jpg"
        ]
        });
错误:

    UnhandledPromiseRejectionWarning: AbortError: The user aborted a request.
      at RequestHandler.execute (/home/pi/Dolores/node_modules/discord.js/src/res/RequestHandler.js:93:15)
      at process._tickCallback (internal/process/next_tick.js:68:7)
(node:10046) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:10046) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

请求花费的时间超过了指定的
restRequestTimeout
(默认情况下为15秒),请求被中止以不锁定请求处理程序。这可能是Discord方面的内部服务器错误,也可能只是连接速度慢。对于后者,可以增加中的
restRequestTimeout
选项,以防止将来的
中止。谢谢!但是我应该在代码中添加什么来解决问题呢?“对于后者,可以增加中的
resrequesttimeout
选项,以防止将来的
异常