Closed hdanqjz closed 8 months ago
i can't fix it :(
The problem is the channel
object in channel._cacheMessage
is not a channel that has the _cacheMessage
function. but discord.js-patched-v11
has not checked this situation.
Could you report this problem to https://github.com/Carcraftz/discord.js-patched-v11 repo? I think this problem will be solved better at discord.js-patched-v11, because solving it will require a lot of knowledge about discord.js-patched-v11
package.
I give another try to reproduce your problem but failed. The following problem blocks me:
process.env.TOKEN
to call login(token)
./server
file is missingdiscord.js-selfbot-v11 no longer works as it uses discord.js v11, discord.js v11 no longer works as it's pretty old and haven't been patched to handle new requests properly and other things.
And self-botting is against Discord's ToS (Terms of Service), so I would advise not doing this.
discord.js-selfbot-v11 no longer works as it uses discord.js v11, discord.js v11 no longer works as it's pretty old and haven't been patched to handle new requests properly and other things.
And self-botting is against Discord's ToS (Terms of Service), so I would advise not doing this.
@VoltrexMaster Awesome! I forgot that you are Discord bot expert. 😜
Quick fix if using discord.js v11: Go to node_modules/discord.js/src/client/actions/MessageCreate.js at row 10 and replace
if(channel) {
with
if (channel && typeof channel._cacheMessage === "function") {
It's still not working
There has been no activity on this issue for 11 months. The help repository works best when sustained engagement moves conversation forward. The issue will be closed in 1 month. If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment.
Closing after no activity on this issue for 12 months.
Details
i run this code and have a problem:
console
Node.js version
v16.7.0
Example code
No response
Operating system
node v16.7
Scope
node
Module and version
Not applicable.