Skip to content

Add type overloads for AddGatewayHandler methods#312

Merged
KubaZ2 merged 1 commit intoalphafrom
feature/add-gateway-handler-type-overload
Apr 8, 2026
Merged

Add type overloads for AddGatewayHandler methods#312
KubaZ2 merged 1 commit intoalphafrom
feature/add-gateway-handler-type-overload

Conversation

@KubaZ2
Copy link
Copy Markdown
Member

@KubaZ2 KubaZ2 commented Apr 8, 2026

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

The documentation preview is available at https://preview.netcord.dev/312.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Type-based overloads for registering gateway handlers in DI, complementing the existing generic and delegate-based AddGatewayHandler / AddShardedGatewayHandler APIs in NetCord.Hosting.

Changes:

  • Added AddGatewayHandler(IServiceCollection, Type handlerType) overload to register an IGatewayHandler implementation by Type.
  • Added AddShardedGatewayHandler(IServiceCollection, Type handlerType) overload to register an IShardedGatewayHandler implementation by Type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KubaZ2 KubaZ2 merged commit ecb15fe into alpha Apr 8, 2026
5 checks passed
@KubaZ2 KubaZ2 deleted the feature/add-gateway-handler-type-overload branch April 8, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants