Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
1xChloe opened this issue Feb 14, 2024 · 0 comments
Open
3 tasks done

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

1xChloe opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@1xChloe
Copy link

1xChloe commented Feb 14, 2024

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

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

@1xChloe 1xChloe added the bug Something isn't working label Feb 14, 2024
aiko-chan-ai added a commit that referenced this issue Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant