-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Bot crashes after disabling some caches #6290
Comments
Thats intended, we just didn't document it so far. |
Whoops, didn't mean to close this. |
We would have to investigate completely disabling the UserManager though. Chances are completely disabling it will be unsupported. Our You could try setting it to like 10(?) or so, this should solve your problem. Or even 5 for that matter. Also disabling your GuildMember cache like that will make you unable to check for your own clients permissions, is that intended in your use case? |
No, that was not my intention. In this case the error happened when a user changed their username, if it was emitted by a gateway event it would be useful in case a developer wants to reduce memory consumption and just cache the client using the |
But I know it might be better to consider not supporting disabling that cache and consider fixing it in future versions. |
With the current way this event is set up (since it's not a real event) and how much work it would be, this is sadly unfeasible in v13. BUT like I said, try lowering the number to something more feasible that still nets you a memory benefit, like 10-100 (mind you, users or members are usually no problem until you reach like 200-500k of them). |
By making UserManager or GuildMemberManager's limit to 10-20 , will solve above issue ?. |
Yes, this issue is solved by setting the limit to 10 |
Yea tried it. |
Please describe the problem you are having in as much detail as possible:
The client crashed after disabling the member and user cache (
GuildMemberManager: 0, UserManager: 0
) and listening to theuserUpdate
event. I was expecting it to be emitted with some data or partial data.Error:
Include a reproducible code sample here, if possible:
Further details:
13.0.0-dev.t1627992462.35fa3b3
14.17.0
Linux 5.4 Zorin OS 15.3
Relevant client options:
The text was updated successfully, but these errors were encountered: