discord.js错误不再发送图片

时间:2020-11-02 19:52:28

标签: discord.js

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

    } 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.

0 个答案:

没有答案