Add channel.type

This commit is contained in:
Amish Shah
2016-08-25 19:41:19 +01:00
parent 64b0e6bc84
commit 8d094cdfb1
7 changed files with 14 additions and 9 deletions

View File

@@ -13,7 +13,15 @@ class Channel {
if (guild) {
this.guild = guild;
}
/**
* The type of the channel, either:
* * `dm` - a DM channel
* * `group` - a Group DM channel
* * `text` - a guild text channel
* * `voice` - a guild voice channel
* @type {String}
*/
this.type = null;
if (data) {
this.setup(data);
}