#(Internal Discord.JS error) TypeError Cannot read properties of undefined (reading 'cache')

10 messages · Page 1 of 1 (latest)

craggy turretBOT
#

• 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.

ember magnet
#

v12 is no longer supported and is crashing on text in voice channels

trail mango
#

Also if this is the reason do you know any way I can work around it for the time being?

#

Like a temporary solution to ignore all messages in text in voice channels?

ember magnet
#

the error is internally when handling MESSAGE_CREATE in a channel which has no message manager (e.g. voice channels prior to the tiv update), nothing you can do except patching djs or removing your bot from every guild which uses tiv

trail mango
#

Which file should I patch in the Discord.js code to fix it?

ember magnet
#

take a look at the stack trace and you'll find the issue, though you shouldn't waste too much time on it instead of updating to v13/14

trail mango
#

Yeah but I kind of need a quick temporary solution now

#

I know my strategy in the long run (update to new djs version) but I kind of want something now