小编Kin*_*ire的帖子

Discord.js 机器人 [DISALLOWED_INTENTS]:提供的特权意图未启用或列入白名单错误

我在 v13+ 上使用 Discord.js Bot 时遇到问题。我收到[DISALLOWED_INTENTS]错误。我怎样才能解决这个问题?谢谢。

(node:16060) UnhandledPromiseRejectionWarning: Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted. at WebSocketManager.createShards (C:\Users\schne\Desktop\Zeltux_v1.5.2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:260:15)
[05:24:04] (node:16060) 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)
        
[05:24:04] (node:16060) [DEP0018] DeprecationWarning: Unhandled promise …
Run Code Online (Sandbox Code Playgroud)

node.js discord.js

15
推荐指数
1
解决办法
8万
查看次数

标签 统计

discord.js ×1

node.js ×1