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(GuildChannel): don't force parentID/permissionOverwrites to empty on create #5823

Merged
merged 2 commits into from
Jun 12, 2021

Conversation

MattIPv4
Copy link
Contributor

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

In #5796 a change was made that forced parentID to be null and permissionOverwrites to be an empty collection on all GuildChannels when they are created. This PR changes that logic to only apply those defaults if they're not set by the initial patch during the super call.

This should resolve the issue of channels firing an update event with parentID changing when they're patched by an event for the first time since the client starts.

Kudos to muchnameless for spotting this before I could.

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

Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

src/structures/GuildChannel.js Outdated Show resolved Hide resolved
@iCrawl iCrawl merged commit c585933 into discordjs:master Jun 12, 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.

4 participants