-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Error when removing role: TypeError [InvalidType]: Supplied user is not a UserResolvable. #8839
Comments
Please include your full error. Never omit it! Also, what is |
Sorry updated,
|
It seems the discord.js/packages/discord.js/src/structures/User.js Lines 18 to 22 in c5d5840
The only way this can happen is if you're mutating it. This seems to be an issue in your own code and not a library issue. |
For some reason it only seems to be happening for my user and the discord bot itself, have an idea of what could be going on? I don't believe I'm mutating it, can you give a sample of maybe some mutation? |
Which package is this bug report for?
discord.js
Issue description
The following steps happen in a loop (around 8 runs max), and I get an error on the last step, sometimes for the first user, if that randomly ends up working, then fails on the second user, and so on. Believe it may be a caching issue, something related to this: #7474. If so, is there any workaround?
Steps run in a loop:
Error:
Code sample
Package version
14.6.0
Node.js version
18.12.0
Operating system
MacOS, Ubuntu
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildMessages, GuildMessageReactions, MessageContent
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: