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
yuzu•2y ago
Use v13.14.0 or newer of discord.js: npm i discord.js@v13-lts
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
JollyJohn
JollyJohn•2y ago
@trkako <#769862166131245066>
TRKako
TRKakoOP•2y ago
didn't want to update 😢 😢 😢 😢 😢 😢 😢 😢 😢 😢 😢 😢
monbrey
monbrey•2y ago
You should probably update when we tell you things will break if you dont
TRKako
TRKakoOP•2y ago
thx anyways
monbrey
monbrey•2y ago
Its a minor for both versions, should be possible without needing to change anything
TRKako
TRKakoOP•2y ago
Yes, I know it, but changing small parts of code in the whole code is bothering 😢 😢 😢
monbrey
monbrey•2y ago
But you dont need to...
TRKako
TRKakoOP•2y 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
monbrey•2y 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
TRKakoOP•2y ago
sorry, I hadn't read well <#769862166131245066> I just read it now
Want results from more Discord servers?
Add your server