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

@@ -31,13 +31,6 @@ class GuildChannel extends Channel {
setup(data) {
super.setup(data);
/**
* The type of the Guild Channel
* @type {String}
*/
if (data.type === 0) this.type = 'text';
else if (data.type === 2) this.type = 'voice';
else this.type = data.type.toString();
/**
* The topic of the Guild Channel, if there is one.
* @type {?String}