Skip to content

Commit

Permalink
fix(GuildChannel): Default parentID to null (#4881)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasdennnoch committed Oct 17, 2020
1 parent dd12912 commit 6e4308b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/GuildChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class GuildChannel extends Channel {
* The ID of the category parent of this channel
* @type {?Snowflake}
*/
this.parentID = data.parent_id;
this.parentID = data.parent_id || null;

/**
* A map of permission overwrites in this channel for roles and users
Expand Down

0 comments on commit 6e4308b

Please sign in to comment.