Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
how can solve this?
when i use this intents:
IntentsBitField.Flags.Guilds,
IntentsBitField.Flags.GuildVoiceStates,
IntentsBitField.Flags.GuildInvites,
IntentsBitField.Flags.GuildModeration,
IntentsBitField.Flags.GuildPresences,
IntentsBitField.Flags.GuildModeration,
IntentsBitField.Flags.GuildMembers
get this error:
node:events:497
throw er; // Unhandled 'error' event
^
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at target.send (node:internal/child_process:754:16)
at Client.<anonymous> (/root/avoice/node_modules/discord.js/src/sharding/ShardClientUtil.js:43:19)
at Client.emit (node:events:519:28)
at WebSocketManager.<anonymous> (/root/avoice/node_modules/discord.js/src/client/websocket/WebSocketManager.js:271:19)
at WebSocketManager.emit (/root/avoice/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
at WebSocketShard.<anonymous> (/root/avoice/node_modules/@discordjs/ws/dist/index.js:1173:51)
at WebSocketShard.emit (/root/avoice/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:290:37)
at WebSocketShard.onClose (/root/avoice/node_modules/@discordjs/ws/dist/index.js:1056:10)
at connection.onclose (/root/avoice/node_modules/@discordjs/ws/dist/index.js:676:17)
at callListener (/root/avoice/node_modules/@discordjs/ws/node_modules/ws/lib/event-target.js:290:14)
Emitted 'error' event on process instance at:
at node:internal/child_process:758:35
at process.processTicksAndRejections (node:internal/process/task_queues:77:11) {
code: 'ERR_IPC_CHANNEL_CLOSED'
}
thanks
discord.js 14.14.1
node -v v21.5.0
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ā
Marked as resolved by OPi used disallowed intents thanks