fix(GuildChannel): Default parentID to null (#4881)

This commit is contained in:
Adrian Paschkowski
2020-10-17 15:36:16 +02:00
committed by GitHub
parent dd12912124
commit 6e4308bfde

View File

@@ -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