TypeError channel.isTextBased/channel.isText is not a function
-
v14
: npm i discord.js@latest
- v13
: npm i discord.js@v13-lts
What happened?
Discord has rolled out a change which broke how we handle things in discord.js. We have fixed this when it first came up and was reverted due to breaking a lot of bots without an immediate fix. Apparently you have not updated discord.js since we did that!How do I fix it?
Update discord.js! (updating minor versions should not break anything)But I didn't change anything!
Correct, but Discord did! (and as response discord.js did, which you need to apply now)I updated and it still throws this error!
• Please make sure you actually updated the library and confirm the version withIt shows the right version number, but still throws this error!npm list discord.js
• You need to have a version of at least14.8.0
or13.14.0
respectively.
Try a clean installation with your package manager of choice: (if using a process manager, try to restart the daemon process as well)V14: V13: If after this you still get this error, please open a post in our support forum with a full error stack trace and your relevant code!
0 Replies