【发布时间】:2022-04-22 14:18:49
【问题描述】:
所以我制作了一个不和谐的音乐机器人(不公开),它基于一些 github 代码,我把它放进去给了我这个,我遇到了 node:events 问题并修复了它(也许)并看到了这个
p>Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted.
at WebSocketManager.createShards (/home/runner/AttachedStingyMiddleware/node_modules/discord.js/src/client/websocket/WebSocketManager.js:250:15)
at async Client.login (/home/runner/AttachedStingyMiddleware/node_modules/discord.js/src/client/Client.js:254:7) {
[Symbol(code)]: 'DISALLOWED_INTENTS'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! AttachedStingyMiddleware@1.0.0 start: `node .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the AttachedStingyMiddleware@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-01-16T06_06_23_431Z-debug.log
exit status 1
``
is the error
【问题讨论】:
标签: node.js npm discord.js