From b5ff309bf985a43da4229421ac53b68f216edede Mon Sep 17 00:00:00 2001 From: Pascal Date: Sat, 20 Jan 2018 23:27:18 +0100 Subject: [PATCH] fix(CategoryChannel): set the type to 'category' and document its type --- src/structures/CategoryChannel.js | 4 ++++ src/structures/Channel.js | 1 + 2 files changed, 5 insertions(+) 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;