/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
[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).
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
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