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

Pruning on mega-guilds #2085

Kowlin opened this issue Apr 14, 2019 · 0 comments


Copy link

commented Apr 14, 2019


I'll be referencing mega-guilds a lot here in this issue, so for our sake consider a mega-guild on Discord a guild with over 200K members.

There currently exists an issue on Discord whereby pruning on mega-guilds will take to long that the endpoint will often fail to respond at all, but the prune will still be initiated. This will occur for both the functions client.estimate_pruned_members and client.prune_members Discord has addressed this with a new field on the prune endpoint. (docs) Which will return None on the number of members pruned immediately and start the prune.

However, without the use of compute_prune_count=False the response from Discord will take long enough that the bot will try and initiate another prune until it reaches it maximum retries.

Reproduction Steps

  1. Initiate a prune on a mega-guild
  2. Discord will not return a response in time
  3. The bot will retry to start a prune while in reality one is already on going.

System Information

  • version: Any version of rewrite
  • Python version: 3.7
  • Operating system: Linux Ubuntu 18.04 LTS

@Rapptz Rapptz closed this in 519f0c0 Apr 14, 2019

@Rapptz Rapptz added the bug label May 10, 2019

@Rapptz Rapptz added this to the v1.1 milestone May 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.