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

fix(WebSocketShard): don't catch errors thrown in event handlers #5803

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

SpaceEEC
Copy link
Member

Please describe the changes this PR makes and why it should be merged:

This PR fixes a bug that causes errors thrown in WebSocketManager's event handlers to be caught and emitted as shard error.
This PR does the same with some other unmentioned event which resolves #4987.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@iCrawl iCrawl requested a review from vladfrangu June 10, 2021 20:56
@iCrawl iCrawl assigned kyranet and unassigned kyranet Jun 10, 2021
@iCrawl iCrawl requested a review from kyranet June 10, 2021 20:56
@iCrawl iCrawl merged commit 53d8e49 into discordjs:master Jun 11, 2021
@iCrawl iCrawl added this to the Version 13 milestone Jun 27, 2021
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.

Silent errors on raw event
4 participants