Suddenly I got this error on every Interaction

About 1 hour ago this error don't even appears, idk what's going on, I'm in Discord.js v13.8.0 (Yes, I know that I have to update but until now 13.8 was working fine)
\node_modules\discord.js\src\client\actions\InteractionCreate.js:48
if (channel && !channel.isText()) return;
^

TypeError: channel.isText is not a function
\node_modules\discord.js\src\client\actions\InteractionCreate.js:48
if (channel && !channel.isText()) return;
^

TypeError: channel.isText is not a function
13 Replies
yuzu
yuzu15mo ago
Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Baconburger998
Baconburger99815mo ago
@trkako <#769862166131245066>
TRKako
TRKako15mo ago
didn't want to update 😢 😢 😢 😢 😢 😢 😢 😢 😢 😢 😢 😢
monbrey
monbrey15mo ago
You should probably update when we tell you things will break if you dont
TRKako
TRKako15mo ago
thx anyways
monbrey
monbrey15mo ago
Its a minor for both versions, should be possible without needing to change anything
TRKako
TRKako15mo ago
Yes, I know it, but changing small parts of code in the whole code is bothering 😢 😢 😢
monbrey
monbrey15mo ago
But you dont need to...
TRKako
TRKako15mo ago
I mean, changing things like this
-channel.isText()
+channel.type === ChannelType.GuildText

-channel.isVoice()
+channel.type === ChannelType.GuildVoice

-channel.isDM()
+channel.type === ChannelType.DM
-channel.isText()
+channel.type === ChannelType.GuildText

-channel.isVoice()
+channel.type === ChannelType.GuildVoice

-channel.isDM()
+channel.type === ChannelType.DM
monbrey
monbrey15mo ago
And, one more time, you dont need to if you just update to the latest v13 Both versions are fixed Only v14 requires those changes
TRKako
TRKako15mo ago
sorry, I hadn't read well <#769862166131245066> I just read it now