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(Invite): #guild never resolving into a Guild #6742

Merged
merged 2 commits into from Oct 2, 2021

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Oct 2, 2021

Please describe the changes this PR makes and why it should be merged:
This PR fixed a bug with Invite#guild where it was documented as possibly being InviteGuild or Guild but it could never be the latter since data.guild can never be an instanceof Guild, since that's the raw data received from Discord. This shouldn't be breaking as the docs and types already had this behavior predicted, it was just poorly implemented

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

src/structures/Invite.js Outdated Show resolved Hide resolved
Co-authored-by: SpaceEEC <spaceeec@yahoo.com>
@ImRodry ImRodry requested a review from SpaceEEC October 2, 2021 20:40
@iCrawl iCrawl added this to the Version 13.2 milestone Oct 2, 2021
@iCrawl iCrawl merged commit b76bb8a into discordjs:main Oct 2, 2021
@ImRodry ImRodry deleted the fix-inviteguild-invite branch October 2, 2021 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants