-
Notifications
You must be signed in to change notification settings - Fork 51
webhook events #463
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
base: master
Are you sure you want to change the base?
webhook events #463
Conversation
e9c3914
to
631be1a
Compare
631be1a
to
0664c0d
Compare
0664c0d
to
a00b481
Compare
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.
Pull Request Overview
This pull request implements webhook events support according to Discord's webhook events documentation. The changes restructure the HTTP handling system and introduce comprehensive support for webhook-based events alongside existing interaction handling.
Key changes include:
- Refactoring of the HTTP server architecture from a single
httpserver
package to separatehttpinteraction
andwebhookevent
packages - Complete restructuring of event management with split
Event
,GatewayEvent
, andWebhookEvent
interfaces - Migration from single
GenericEvent
to composition-based event structure with separate gateway and webhook contexts
Reviewed Changes
Copilot reviewed 103 out of 104 changed files in this pull request and generated 9 comments.
Show a summary per file
File | Description |
---|---|
webhookevent/messages.go | Defines webhook message structures and event data types for Discord webhook events |
webhookevent/handler.go | Implements HTTP handler for processing webhook events with signature verification |
events/generic_event.go | Refactors event system from single GenericEvent to separate Event/GatewayEvent/WebhookEvent composition |
bot/config.go | Updates client configuration to support both interaction and webhook handlers |
gateway/gateway.go | Modifies gateway to pass full Message objects instead of individual parameters |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
https://discord.com/developers/docs/events/webhook-events