Skip to content

CoreHandler is no longer a parent class to all the other Handlers#2

Merged
yetnt merged 8 commits intomainfrom
no-extender
Dec 1, 2024
Merged

CoreHandler is no longer a parent class to all the other Handlers#2
yetnt merged 8 commits intomainfrom
no-extender

Conversation

@yetnt
Copy link
Copy Markdown
Owner

@yetnt yetnt commented Dec 1, 2024

This update introduces a significant structural change: CoreHandler is no longer a parent class to the other handlers. Instead of extending CoreHandler, all handlers now take it as a property, passed explicitly as the first parameter in their constructors. This design improves modularity. To support this, the ReadyHandler constructor has also changed; the shard client must now be provided as the second parameter, after CoreHandler. If no shard client is being used, undefined must be passed explicitly. These changes enable each shard to work independently while maintaining clear communication between handlers through the CoreHandler instance. However, the update introduces breaking changes, as existing code must now be adjusted to account for the new constructor requirements.

Copy link
Copy Markdown
Owner Author

@yetnt yetnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yetnt yetnt added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 1, 2024
@yetnt yetnt self-assigned this Dec 1, 2024
@yetnt yetnt merged commit 62f92c1 into main Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant