VC Text Channel Logging
Hi all,
So my bot has a logging function in it, whereby it tracks any messages deleted/edited etc that are posted.
Since Discord introduced their text chat for VCs, however, I get the below error on my console whenever a user posts in a VC Text Chat, and the bot enters Zombie Connection, and has to be restarted. The error on the console is below, can anyone advise whether there is an update available that I can deploy to my Discord.JS, or if the issue is elsewhere in my bot?
Discord sent a typing packet to a voice channel 906225549515554906
[Error] An exception happened in process:
TypeError: Cannot read property 'cache' of undefined
at MessageCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/MessageCreate.js:11:41)
at Object.module.exports [as MESSAGE_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:400:28)
at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:1068:20)
at Receiver.emit (events.js:400:28)
at Receiver.dataMessage (/home/container/node_modules/ws/lib/receiver.js:517:14)
2 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Ah, drat; that means updating 95% of the bot. OK, thank you
Apologies, thought I had