Skip to content

Add handler for unknown Discord dispatch events #3088

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Spider570
Copy link
Contributor

Description

Adds a new event (UnknownDispatchReceived) which fires whenever the library encounters an unknown or unhandled dispatch type.

Changes

  • Added a new UnknownDispatchReceived event and an internal AsyncEvent<Func<string, JToken, Task>> field named _unknownDispatchReceived.
  • Modified ProcessMessageAsync to invoke UnknownDispatchReceived when a dispatch event is received with an unknown type.

Related Issues

Resolves #2899

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.

Add Unknown event
1 participant