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(core): experimental sharding support #259

Merged
merged 3 commits into from
Jul 1, 2024
Merged

feat(core): experimental sharding support #259

merged 3 commits into from
Jul 1, 2024

Conversation

Pkmmte
Copy link
Member

@Pkmmte Pkmmte commented Jul 1, 2024

Adds experimental support for sharding bots via the ShardingManager provided by Discord.js.

This was previously only available via the not-so-recommended shards: 'auto' client option.

This allows for simpler direct usage without needing to know the internals for loading this externally. Ya know, like when migrating existing projects.

State and Flashcore now load automatically, even when no `stateLoad` promise has been passed.
Completely automated sharding via a simple config option. Still allows direct passage of sharding manager options if one wishes so.

The main downside to this implementation is lack of programatic access to the sharding manager for the end developer. This will change in v0.11.
Copy link

vercel bot commented Jul 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2024 7:02am

@Pkmmte Pkmmte merged commit 91c6f33 into main Jul 1, 2024
3 checks passed
@Wave-Play Wave-Play locked and limited conversation to collaborators Jul 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant