【问题标题】:I create a code to madd dm everyone in a server through a self bot but i am getting this error我通过自我机器人创建了一个代码来让服务器中的每个人都疯狂,但我收到了这个错误
【发布时间】:2020-12-22 01:29:50
【问题描述】:
ypeError: _0x3f232e[_0x209805(...)][_0x209805(...)] is not a function
    at Client.<anonymous> (C:\Users\ADVAITH\Desktop\dm\DMALL\index.js:1:5799)
    at Client.emit (events.js:315:20)
    at MessageCreateHandler.handle (C:\Users\ADVAITH\Desktop\dm\DMALL\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
    at WebSocketPacketManager.handle (C:\Users\ADVAITH\Desktop\dm\DMALL\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65)
    at WebSocketConnection.onPacket (C:\Users\ADVAITH\Desktop\dm\DMALL\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
    at WebSocketConnection.onMessage (C:\Users\ADVAITH\Desktop\dm\DMALL\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
    at WebSocket.onMessage (C:\Users\ADVAITH\Desktop\dm\DMALL\node_modules\ws\lib\event-target.js:120:16)
    at WebSocket.emit (events.js:315:20)
    at Receiver.receiverOnMessage (C:\Users\ADVAITH\Desktop\dm\DMALL\node_modules\ws\lib\websocket.js:789:20)
    at Receiver.emit (events.js:315:20)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11040) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11040) [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.`enter code here`

这是我遇到的错误,我尝试了很多方法 t9o 解决但我失败了请帮助我

【问题讨论】:

  • 请更具体地说明您在此处尝试执行的操作(重现的步骤)。它看起来像是一个异步抛出的错误。
  • 1) 自我机器人违反 Discord 服务条款 2) 服务器中的大规模 Dming 是 API 垃圾邮件,可能导致机器人被禁止
  • 首先,discord.js 甚至不再支持自我机器人。其次,正如 Elitezen 所说,他们反对 Discord ToS。第三,您尝试做的主要实现本质上是恶意的(例如创建垃圾邮件机器人)。简而言之,最好不要以任何方式、形状或形式这样做

标签: javascript node.js discord discord.js bots


【解决方案1】:

正如我在 cmets 中提到的:

  1. discord.js 甚至不再支持自我机器人。错误是意料之中的,而且您想要做的事情很可能已经不可能了。
  2. 正如 Elitezen 所提到的,自我机器人违反了 Discord ToS。这样做毫无疑问会让你的机器人和/或你自己的帐户被禁止进入 Discord。
  3. 您在此处尝试执行的操作的主要实现本质上是恶意的(例如创建垃圾邮件机器人或袭击机器人)。即使这不是您在这里尝试做的事情,但您尝试做的事情仍然很可能是不可能的;此外,违反您首次加入 Discord 时接受的服务条款将会产生重大后果。

简而言之,最好不要以任何方式、形状或形式尝试这样做。相信我,创建这个群发消息的自我机器人不值得花时间和后果。

另请注意,无论如何,我们都无法解决您的问题。您没有提供任何代码,您只是给了我们一个我们无法解决的通用错误,因为我们没有您的代码。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-28
    • 2023-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-10
    • 2021-08-19
    • 2022-01-25
    相关资源
    最近更新 更多