aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
777 stars 165 forks source link

TypeError: Cannot read properties of undefined (reading 'members') #1049

Closed 1xChloe closed 3 months ago

1xChloe commented 7 months ago

Which package has the bugs?

The core library

Issue description

/home/container/node_modules/discord.js-selfbot-v13/src/util/Util.js:607 const member = channel.guild.members.cache.get(id); ^

TypeError: Cannot read properties of undefined (reading 'members') at /home/container/node_modules/discord.js-selfbot-v13/src/util/Util.js:607:38 at String.replace () at Util.cleanContent (/home/container/node_modules/discord.js-selfbot-v13/src/util/Util.js:600:8) at get cleanContent [as cleanContent] (/home/container/node_modules/discord.js-selfbot-v13/src/structures/Message.js:494:40) at Client. (file:///home/container/index.js:398:38) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v19.9.0

Code sample

Not sure what causes it, as i dont do anything for fetching members/channels/anything, just sending/editing msgs. Happens randomly

Package version

3.1.4

Node.js version

19.9.0

Operating system

Linux

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response