diff --git a/src/structures/CategoryChannel.js b/src/structures/CategoryChannel.js index 2c063f73d..9ba263abe 100644 --- a/src/structures/CategoryChannel.js +++ b/src/structures/CategoryChannel.js @@ -5,6 +5,10 @@ const GuildChannel = require('./GuildChannel'); * @extends {GuildChannel} */ class CategoryChannel extends GuildChannel { + constructor(guild, data) { + super(guild, data); + this.type = 'category'; + } /** * The channels that are part of this category * @type {?Collection} diff --git a/src/structures/Channel.js b/src/structures/Channel.js index 01de2248b..226ab9847 100644 --- a/src/structures/Channel.js +++ b/src/structures/Channel.js @@ -19,6 +19,7 @@ class Channel { * * `group` - a Group DM channel * * `text` - a guild text channel * * `voice` - a guild voice channel + * * `category` - a guild category channel * @type {string} */ this.type = null;