mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 08:03:30 +01:00
fix(GuildChannel): Default parentID to null (#4881)
This commit is contained in:
committed by
GitHub
parent
dd12912124
commit
6e4308bfde
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user