ianfinity
ianfinity
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
ic
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
thanks for your help
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
💀 fair enough
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
I just dont want to have my bot go down every couple months ish and have to go in there and manually update discord.js and restart the bot
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
(I updated and it fixed the error)
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
but I dont want my bot to break every update
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
thats what I did
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
[email protected], v18.15.0
/home/opc/Ectobot/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/opc/Ectobot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50:33) at module.exports [as INTERACTION_CREATE] (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31) at WebSocketShard.onPacket (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:489:22) at WebSocketShard.onMessage (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:328:10) at callListener (/home/opc/Ectobot/node_modules/ws/lib/event-target.js:290:14) at WebSocket.onMessage (/home/opc/Ectobot/node_modules/ws/lib/event-target.js:209:9) at WebSocket.emit (node:events:513:28) at Receiver.receiverOnMessage (/home/opc/Ectobot/node_modules/ws/lib/websocket.js:1180:20) at Receiver.emit (node:events:513:28)
/home/opc/Ectobot/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/opc/Ectobot/node_modules/discord.js/src/client/actions/InteractionCreate.js:50:33) at module.exports [as INTERACTION_CREATE] (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31) at WebSocketShard.onPacket (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:489:22) at WebSocketShard.onMessage (/home/opc/Ectobot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:328:10) at callListener (/home/opc/Ectobot/node_modules/ws/lib/event-target.js:290:14) at WebSocket.onMessage (/home/opc/Ectobot/node_modules/ws/lib/event-target.js:209:9) at WebSocket.emit (node:events:513:28) at Receiver.receiverOnMessage (/home/opc/Ectobot/node_modules/ws/lib/websocket.js:1180:20) at Receiver.emit (node:events:513:28)
- if (channel && !channel.isTextBased()) return;
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
but that may cause some issues as I dont only want it to happen in text channels, but all text based channels
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
I'll try swapping to channel.type === ChannelType.GuildText
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
should
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
.isTextBased
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
but according to the docs
18 replies
DIAdiscord.js - Imagine an app
Created by ianfinity on 6/26/2023 in #djs-questions
channel.isTextBased is not a function
I know that .isText no longer works
18 replies