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 with npm list discord.js • You need to have a version of at least 14.8.0 or 13.14.0 respectively.
It shows the right version number, but still throws this error!
Try a clean installation with your package manager of choice: (if using a process manager, try to restart the daemon process as well)
V14:
npm remove discord.js
npm install discord.js

yarn remove discord.js
yarn add discord.js

pnpm remove discord.js
pnpm install discord.js
npm remove discord.js
npm install discord.js

yarn remove discord.js
yarn add discord.js

pnpm remove discord.js
pnpm install discord.js
V13:
npm remove discord.js
npm install discord.js@13

yarn remove discord.js
yarn add discord.js@13

pnpm remove discord.js
pnpm install discord.js@13
npm remove discord.js
npm install discord.js@13

yarn remove discord.js
yarn add discord.js@13

pnpm remove discord.js
pnpm install discord.js@13
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
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server