英文:
Discord.js v14.7.1 - TypeError: channel.isTextBased is not a function
问题
I've been running a discord bot for a while now with no issues, and then all of a sudden today I began getting this error whenever users use interaction buttons. I'm not sure why it's happening now.
我已经运行了一个 Discord 机器人一段时间了,之前没有任何问题,但突然今天,每当用户使用交互按钮时,我就会收到这个错误。我不确定为什么现在会出现这个问题。
I didn't change my version of discord.js or anything like that, i'm also not using "channel.isTextBased" anywhere in my code. I'm confused as to why this has popped up all of a sudden. Any ideas?
我没有更改 discord.js 的版本或任何类似的东西,而且我的代码中也没有使用 "channel.isTextBased"。我对为什么突然出现这个问题感到困惑。有任何想法吗?
英文:
I've been running a discord bot for a while now with no issues, and then all of a sudden today I began getting this error whenever users use interaction buttons. I'm not sure why it's happeneing now.
I didn't change my version of discord.js or anything like that, i'm also not using "channel.isTextBased" anywhere in my code. I'm confused as to why this has popped up all of a sudden. Any ideas?
答案1
得分: 5
似乎我们应该更新到14.8.0版本,这个版本修复了这个问题。
链接:https://github.com/discordjs/discord.js/issues/9295
英文:
Seems we should update to 14.8.0 which fixes the issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论