Discord.js v14.7.1 – TypeError: channel.isTextBased is not a function

huangapple go评论91阅读模式
英文:

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.

https://github.com/discordjs/discord.js/issues/9295

huangapple
  • 本文由 发表于 2023年3月31日 03:58:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75892478.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定