TypeError: channel.isTextBased is not a function

I have a problem with Interactions: Since yesterday evening every button interaction results in an error as follows
/home/developer/Wishbot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50
if (channel && !channel.isTextBased()) return;
^

TypeError: channel.isTextBased is not a function
at InteractionCreateAction.handle (/home/developer/Wishbot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50:33)
at module.exports [as INTERACTION_CREATE] (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
at WebSocketShard.onPacket (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:489:22)
at WebSocketShard.onMessage (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:328:10)
at callListener (/home/developer/Wishbot/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onMessage (/home/developer/Wishbot/node_modules/ws/lib/event-target.js:209:9)
at WebSocket.emit (node:events:512:28)
at Receiver.receiverOnMessage (/home/developer/Wishbot/node_modules/ws/lib/websocket.js:1180:20)
at Receiver.emit (node:events:512:28)
/home/developer/Wishbot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50
if (channel && !channel.isTextBased()) return;
^

TypeError: channel.isTextBased is not a function
at InteractionCreateAction.handle (/home/developer/Wishbot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50:33)
at module.exports [as INTERACTION_CREATE] (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
at WebSocketShard.onPacket (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:489:22)
at WebSocketShard.onMessage (/home/developer/Wishbot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:328:10)
at callListener (/home/developer/Wishbot/node_modules/ws/lib/event-target.js:290:14)
at WebSocket.onMessage (/home/developer/Wishbot/node_modules/ws/lib/event-target.js:209:9)
at WebSocket.emit (node:events:512:28)
at Receiver.receiverOnMessage (/home/developer/Wishbot/node_modules/ws/lib/websocket.js:1180:20)
at Receiver.emit (node:events:512:28)
K
kyra387d ago
Not a Sapphire issue + update discord.js to 13.14.0 or 14.8.0
A
Akanixon387d ago
ehm yeah I should have thought of that myself thank you
Want results from more Discord servers?
Add your server
More Posts
Can not resolve dependency sapphireHello, after todays NODE JS update, im having an issue with sapphire dependency, would you be able tUserError listener not catching all errorsI am running an imported function in my command, and calling UserError in this file and when I do, iNested message component collectorsHow should I be handling nested message component collectors? What the best way to do itHow to get message args ?Like i have command `+mark 123`, how i can get the `123`API Placeholder in RouteI didn't found it in the docs. Is there any way to get a placeholder into a route like in express wiTypeError piace.aliases is not iterableGood afternoon, I mixed such a strange code as best I could. My task was to add a button to the messI'm getting this error when used my new precondtion.my fileAPIInteractionDataResolvedGuildMember does not have idWhile fetching for member using `interaction.options.getMember('member')` it gives two types - `GuilAPI Client with SSL?Hey guys, currently I am trying to make the switch from an custom express API to the API plugin. IsContext Menu Command and Subcommand cannot be in same extended class?I have a slash command which is an extended `Subcommand` called `give-role` with two subcommands - `UserErrors not being caught by listener - bot is crashingmessageCommandError.mjs ```js import { Events, Listener } from "@sapphire/framework"; import { send Subcommand isn't runningWhen the subcommand is run in Discord, it times out. I've added a log to the beginning of the method