mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(CategoryChannel): set the type to 'category' and document its type
This commit is contained in:
@@ -5,6 +5,10 @@ const GuildChannel = require('./GuildChannel');
|
|||||||
* @extends {GuildChannel}
|
* @extends {GuildChannel}
|
||||||
*/
|
*/
|
||||||
class CategoryChannel extends GuildChannel {
|
class CategoryChannel extends GuildChannel {
|
||||||
|
constructor(guild, data) {
|
||||||
|
super(guild, data);
|
||||||
|
this.type = 'category';
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* The channels that are part of this category
|
* The channels that are part of this category
|
||||||
* @type {?Collection<Snowflake, GuildChannel>}
|
* @type {?Collection<Snowflake, GuildChannel>}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ class Channel {
|
|||||||
* * `group` - a Group DM channel
|
* * `group` - a Group DM channel
|
||||||
* * `text` - a guild text channel
|
* * `text` - a guild text channel
|
||||||
* * `voice` - a guild voice channel
|
* * `voice` - a guild voice channel
|
||||||
|
* * `category` - a guild category channel
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.type = null;
|
this.type = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user