From 6e4308bfdef045c9768c4448304e8f0e63d9fc3c Mon Sep 17 00:00:00 2001 From: Adrian Paschkowski Date: Sat, 17 Oct 2020 15:36:16 +0200 Subject: [PATCH] fix(GuildChannel): Default `parentID` to `null` (#4881) --- src/structures/GuildChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index cddfde3b9..573ad0991 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -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