-
Notifications
You must be signed in to change notification settings - Fork 185
feat: Paginate guilds when syncing #1185
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
feat: Paginate guilds when syncing #1185
Conversation
…ing bot's guilds when syncing
AstreaTSS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going through every single guild is a very slow operation. Perhaps a warning would be best? Maybe advise the user to not do this if more than one iteration is needed?
Also, while this doesn't relate to this PR, maybe adding in a toggle to disable guild-based syncing would be a good feature too, as many only need to update global commands.
|
Ok, I have modified the PR to make the function private to Client, as we already have |
|
PR was tested and it resolves the issue that one person had |
About
Previously, the library did not account for bots which were present in more than 200 guilds BUT used guild commands. Now, the function when syncing uses a paginator to make sure all guilds are acquired.
Checklist
pre-commitcode linter has been run over all edited files to ensure the code is linted.3.8.6and higher.I've made this pull request: (check all that apply)
This is: