【发布时间】: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