mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(CategoryChannel): set the type to 'category' and document its type
This commit is contained in:
parent
6e10d258b6
commit
b5ff309bf9
2 changed files with 5 additions and 0 deletions
|
|
@ -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<Snowflake, GuildChannel>}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue