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: don't patch missing properties from partial payloads #5796

Merged
merged 3 commits into from Jun 10, 2021

Conversation

SpaceEEC
Copy link
Member

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

This PR resolves #5605 by only updating properties of Channel and subclasses when they are in the payload.
In similar vein, if a user option was used, their last message properties would reset to null. Since this is something we provide on our own, there is no reason for those to be in _patch.

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/GuildChannel.js Show resolved Hide resolved
src/structures/GuildChannel.js Outdated Show resolved Hide resolved
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.

Some values of an object extending Channel loses its value after using slash commands
4 participants