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(ClientUser) verified and enabled properties resetting #3733

Merged
merged 4 commits into from
Jan 25, 2020
Merged

fix(ClientUser) verified and enabled properties resetting #3733

merged 4 commits into from
Jan 25, 2020

Conversation

NotSugden
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
This PR fixes ClientUser#verified and ClientUser#mfaEnabled properties resetting when something triggers the _patch method, by only setting the properties if they exist in the data

Status

  • 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

Semantic versioning classification:

  • This PR changes the library's interface (methods or parameters added)
    • This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
  • This PR only includes non-code changes, like changes to documentation, README, etc.

src/structures/ClientUser.js Show resolved Hide resolved
src/structures/ClientUser.js Outdated Show resolved Hide resolved
@SpaceEEC SpaceEEC dismissed their stale review January 24, 2020 15:32

can't fix this

src/structures/ClientUser.js Outdated Show resolved Hide resolved
@SpaceEEC SpaceEEC dismissed amishshah’s stale review January 25, 2020 14:08

requested changes were applied

@SpaceEEC SpaceEEC merged commit 3ea9ac5 into discordjs:master Jan 25, 2020
@NotSugden NotSugden deleted the patch-3 branch February 14, 2020 00:36
samsamson33 pushed a commit to samsamson33/discord.js that referenced this pull request Feb 27, 2020
…#3733)

* fix(ClientUser) verified and enabled properties resetting

* set this.mfaEnabled to null if it is undefined

* add missing curly brackets

* fix typo
samsamson33 added a commit to samsamson33/discord.js that referenced this pull request Feb 27, 2020
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.

7 participants