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

feat(FetchRecommendedShardsOptions): account for large bot sharding #6184

Merged
merged 6 commits into from Jul 29, 2021
Merged

feat(FetchRecommendedShardsOptions): account for large bot sharding #6184

merged 6 commits into from Jul 29, 2021

Conversation

scottbucher
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
Implements the changes described in #5672. This changes Util.fetchRecommendedShards to take in a FetchRecommendedShardsOption which includes guildsPerShard which is the number of guilds per shard the user wants and a boolean largeBotSharding option which decides if discord.js will round their shards up to a multiple of 16 which is required for large bot sharding.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)
  • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)

src/util/Util.js Outdated Show resolved Hide resolved
src/util/Util.js Outdated Show resolved Hide resolved
scottbucher and others added 2 commits July 26, 2021 07:45
Co-authored-by: Justin <justinleeong@gmail.com>
Co-authored-by: Justin <justinleeong@gmail.com>
src/util/Util.js Outdated Show resolved Hide resolved
src/util/Util.js Outdated Show resolved Hide resolved
@iCrawl iCrawl added this to the Version 13 milestone Jul 27, 2021
@iCrawl iCrawl merged commit 19b242a into discordjs:master Jul 29, 2021
scottbucher referenced this pull request in KevinNovak/Discord-Bot-TypeScript-Template Aug 14, 2021
* Update packages
* Replace discord.js-light with discord.js
* Fixes for discord.js v13
* Fix broadcastEval's
* Update README
* Disable commonly unused caches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants