Merge remote-tracking branch 'origin/indev-rewrite' into indev-rewrite-voice

This commit is contained in:
Amish Shah
2016-08-25 14:26:38 +01:00
3 changed files with 10 additions and 2 deletions

View File

@@ -33,9 +33,11 @@ class GuildChannel extends Channel {
super.setup(data);
/**
* The type of the Guild Channel
* @type {Number}
* @type {String}
*/
this.type = data.type;
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}