Skip to content

Commit

Permalink
fix(GuildChannel): don't force parentID/permissionOverwrites to empty…
Browse files Browse the repository at this point in the history
… on create (#5823)
  • Loading branch information
MattIPv4 committed Jun 12, 2021
1 parent 99ff715 commit c585933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structures/GuildChannel.js
Expand Up @@ -36,8 +36,8 @@ class GuildChannel extends Channel {
*/
this.guild = guild;

this.parentID = null;
this.permissionOverwrites = new Collection();
this.parentID = this.parentID ?? null;
this.permissionOverwrites = this.permissionOverwrites ?? new Collection();
}

_patch(data) {
Expand Down

0 comments on commit c585933

Please sign in to comment.