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(Guild): don't patch before instance properties #5885

Merged
merged 3 commits into from
Jun 20, 2021

Conversation

ckohen
Copy link
Member

@ckohen ckohen commented Jun 20, 2021

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

When _patch gets called by super() the instance properties created after the super call don't exist yet...causing hard crashes.

fixes #5884

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
  • This PR changes the library's interface (methods or parameters added)

typings/index.d.ts Outdated Show resolved Hide resolved
Co-authored-by: BannerBomb <[email protected]>
@iCrawl iCrawl merged commit 174b7a7 into discordjs:master Jun 20, 2021
@ckohen ckohen deleted the guild-immediate-patch branch June 20, 2021 21:47
@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.

Process crashing when bot is added to a new guild
5 participants