Why am I getting this error?

=== UNCAUGHT EXCEPTION MONITOR ===

=== UNCAUGHT EXCEPTION ===
Exception: TypeError: channel.isText is not a function
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:48:33)
at Object.module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:478:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:199:18)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:1169:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/home/container/node_modules/ws/lib/receiver.js:528:14)
at Receiver.getData (/home/container/node_modules/ws/lib/receiver.js:446:17)
at Receiver.startLoop (/home/container/node_modules/ws/lib/receiver.js:148:22)
at Receiver._write (/home/container/node_modules/ws/lib/receiver.js:83:10)
at writeOrBuffer (node:internal/streams/writable:391:12)
at _write (node:internal/streams/writable:332:10)
at Receiver.Writable.write (node:internal/streams/writable:336:10)
at TLSSocket.socketOnData (/home/container/node_modules/ws/lib/websocket.js:1263:35)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
=== UNCAUGHT EXCEPTION ===
=== UNCAUGHT EXCEPTION MONITOR ===

=== UNCAUGHT EXCEPTION ===
Exception: TypeError: channel.isText is not a function
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:48:33)
at Object.module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:346:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:478:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:317:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:199:18)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:1169:20)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/home/container/node_modules/ws/lib/receiver.js:528:14)
at Receiver.getData (/home/container/node_modules/ws/lib/receiver.js:446:17)
at Receiver.startLoop (/home/container/node_modules/ws/lib/receiver.js:148:22)
at Receiver._write (/home/container/node_modules/ws/lib/receiver.js:83:10)
at writeOrBuffer (node:internal/streams/writable:391:12)
at _write (node:internal/streams/writable:332:10)
at Receiver.Writable.write (node:internal/streams/writable:336:10)
at TLSSocket.socketOnData (/home/container/node_modules/ws/lib/websocket.js:1263:35)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
=== UNCAUGHT EXCEPTION ===
16 Replies
d.js toolkit
d.js toolkit14mo ago
Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts (more: https://discord.com/channels/222078108977594368/1091094485754187907/1091094485754187907 ) - 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!
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
I am already using v13
Kinect3000
Kinect300014mo ago
13.14+ Not any v13
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
I use 13.16 Actually As the package.json says
Kinect3000
Kinect300014mo ago
Run npm ls discord.js package.json might not be in-sync with what’s actually installed
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
I need to run it locally in the folder from my machine, for own reason my ssh doesn't work. Give me a minute
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
No description
Kinect3000
Kinect300014mo ago
Yikes Not sure why memer-api requires d.js v12
treble/luna
treble/luna14mo ago
and also, modals are supported in v13 so no need for that package
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
Yeah the bot is old coded
Kinect3000
Kinect300014mo ago
You have d.js v13.8 installed
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
How I install the one I require now without changing to v14 for now? If I change to v14 I will have to recode the bot And it's huge
treble/luna
treble/luna14mo ago
just run npm update should update to 13.16
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
Okay thx
treble/luna
treble/luna14mo ago
or alternatively npm i discord.js@v13-lts
Dãrķ Søŭł
Dãrķ SøŭłOP14mo ago
Thx
Want results from more Discord servers?
Add your server